Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 116.3 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.639/1.639, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 55.91 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3797, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005974/0.3857, allocations: 4.058 MB / 404.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.3877, allocations: 1.017 MB / 405.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.3879, allocations: 4 kB / 405.8 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.3882, allocations: 87.14 kB / 405.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.3885, allocations: 190.4 kB / 406.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.3891, allocations: 215.6 kB / 406.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009115/0.39, allocations: 0.8095 MB / 407.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003253/0.3903, allocations: 172.9 kB / 407.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004132/0.3908, allocations: 310.9 kB / 407.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.3912, allocations: 354.7 kB / 407.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3913, allocations: 80 kB / 408 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.3914, allocations: 84 kB / 408.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.3916, allocations: 163.4 kB / 408.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.3919, allocations: 330.5 kB / 408.6 MB, free: 1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008211/0.3928, allocations: 0.8461 MB / 409.4 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3928, allocations: 0 / 409.4 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3928, allocations: 4 kB / 409.4 MB, free: 156 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.3928, allocations: 0 / 409.4 MB, free: 156 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002681/0.3955, allocations: 1.019 MB / 410.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.3956, allocations: 12.03 kB / 410.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.3957, allocations: 60.19 kB / 410.5 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006613/0.3963, allocations: 414 kB / 410.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.005e-05/0.3964, allocations: 37.38 kB / 410.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.131e-05/0.3965, allocations: 36.38 kB / 411 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.398, allocations: 0.5914 MB / 411.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.398, allocations: 4 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.103e-05/0.3981, allocations: 19.98 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.3981, allocations: 8 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.3999, allocations: 0.6206 MB / 412.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/0.4038, allocations: 2.145 MB / 414.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/0.4074, allocations: 0.8446 MB / 415.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.4083, allocations: 385.3 kB / 415.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.797e-05/0.4084, allocations: 20.23 kB / 415.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.4094, allocations: 422.7 kB / 416 MB, free: 9.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.703e-06/0.4094, allocations: 0 / 416 MB, free: 9.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01368/0.4231, allocations: 2.285 MB / 418.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.4232, allocations: 81.11 kB / 418.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006027/0.4238, allocations: 406 kB / 418.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/0.4239, allocations: 37.7 kB / 418.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.4241, allocations: 232.6 kB / 419 MB, free: 6.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.4243, allocations: 134 kB / 419.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.4245, allocations: 73.97 kB / 419.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4246, allocations: 358.7 kB / 419.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000858/0.4255, allocations: 296.5 kB / 419.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009071/0.4264, allocations: 334 kB / 420.2 MB, free: 5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.428, allocations: 0.5796 MB / 420.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.428, allocations: 0 / 420.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003311/0.4313, allocations: 0.9821 MB / 421.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.4314, allocations: 33.7 kB / 421.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4314, allocations: 0 / 421.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.4326, allocations: 399.9 kB / 422.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.4331, allocations: 87.86 kB / 422.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007878/0.441, allocations: 3.67 MB / 425.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007738/0.4418, allocations: 91.64 kB / 426 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.4419, allocations: 12 kB / 426 MB, free: 14.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000413/0.4423, allocations: 181.7 kB / 426.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.4425, allocations: 47.44 kB / 426.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.4426, allocations: 52.56 kB / 426.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.4427, allocations: 7.984 kB / 426.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4427, allocations: 4 kB / 426.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.4427, allocations: 7.984 kB / 426.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008466/0.4435, allocations: 0.6029 MB / 426.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4436, allocations: 7.938 kB / 427 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.444, allocations: 79.86 kB / 427 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.4452, allocations: 399.7 kB / 427.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.4452, allocations: 8 kB / 427.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0082/0.4534, allocations: 3.653 MB / 431.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4535, allocations: 0 / 431.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005666/0.4591, allocations: 1.462 MB / 432.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.4595, allocations: 172.5 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.4597, allocations: 19.92 kB / 432.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.4603, allocations: 67.92 kB / 432.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.4605, allocations: 51.92 kB / 432.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.406e-05/0.4606, allocations: 12 kB / 432.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.461, allocations: 287.2 kB / 433.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.461, allocations: 0 / 433.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000755/0.4617, allocations: 175.7 kB / 433.3 MB, free: 7.473 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001902/0.4619, allocations: 115.1 kB / 433.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.4647, allocations: 0.9193 MB / 434.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4647, allocations: 0 / 434.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.4662, allocations: 0.5647 MB / 434.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.4667, allocations: 97.38 kB / 435 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.4701, allocations: 1.192 MB / 436.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.4706, allocations: 0.8395 MB / 437 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002496/0.4709, allocations: 47.38 kB / 437.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.471, allocations: 31.44 kB / 437.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.471, allocations: 0 / 437.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of Templates: time 0.0232/0.4942, allocations: 13.87 MB / 451 MB, free: 5.789 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches