Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 115.3 kB / 17.06 MB, free: 6 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.001748/0.001748, allocations: 196 kB / 18 MB, free: 5.078 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.607/1.607, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 48.08 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4423/0.4436, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004952/0.4487, allocations: 2.928 MB / 403.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.4503, allocations: 0.7285 MB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.4505, allocations: 4 kB / 404.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.4508, allocations: 51.44 kB / 404.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002729/0.4511, allocations: 103.1 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.4515, allocations: 99.81 kB / 404.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005653/0.4521, allocations: 410.3 kB / 405 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.4525, allocations: 127.2 kB / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.4528, allocations: 155.5 kB / 405.3 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.4531, allocations: 167.2 kB / 405.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.328e-05/0.4532, allocations: 40 kB / 405.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.955e-05/0.4532, allocations: 40 kB / 405.6 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.4534, allocations: 71.77 kB / 405.6 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.4536, allocations: 171.2 kB / 405.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006148/0.4542, allocations: 439.7 kB / 406.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.4542, allocations: 0 / 406.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.054e-06/0.4543, allocations: 0 / 406.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.4543, allocations: 3.938 kB / 406.2 MB, free: 3.355 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001406/0.4557, allocations: 0.6168 MB / 406.8 MB, free: 2.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4557, allocations: 12.03 kB / 406.9 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.4559, allocations: 36.47 kB / 406.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006136/0.4565, allocations: 271.8 kB / 407.2 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.4565, allocations: 20.94 kB / 407.2 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/0.4566, allocations: 28.38 kB / 407.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007669/0.4574, allocations: 292.8 kB / 407.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.4574, allocations: 0 / 407.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.4574, allocations: 8 kB / 407.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.4575, allocations: 11.98 kB / 407.5 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004527/0.4579, allocations: 206.1 kB / 407.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.4599, allocations: 1.156 MB / 408.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.4605, allocations: 213.4 kB / 409.1 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.4609, allocations: 142.5 kB / 409.2 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.4609, allocations: 4 kB / 409.2 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.4612, allocations: 170.7 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.943e-06/0.4613, allocations: 0 / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001551/0.4628, allocations: 0.5165 MB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.463, allocations: 132.5 kB / 410 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.4633, allocations: 241 kB / 410.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.4634, allocations: 33.7 kB / 410.3 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.4635, allocations: 168.4 kB / 410.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.897e-05/0.4636, allocations: 67.12 kB / 410.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.4637, allocations: 57.59 kB / 410.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.464, allocations: 330.8 kB / 410.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.4642, allocations: 71.97 kB / 411 MB, free: 14.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.4644, allocations: 133 kB / 411.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.4648, allocations: 179.3 kB / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4648, allocations: 0 / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005547/0.4653, allocations: 290 kB / 411.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.4654, allocations: 12.09 kB / 411.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.4654, allocations: 3.938 kB / 411.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000515/0.4659, allocations: 92.8 kB / 411.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.4661, allocations: 23.98 kB / 411.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/0.4688, allocations: 2.154 MB / 413.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.4691, allocations: 39.75 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.4691, allocations: 4 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001917/0.4693, allocations: 142.5 kB / 414 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.4693, allocations: 27.66 kB / 414.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.62e-05/0.4694, allocations: 34.17 kB / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.4694, allocations: 0 / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4694, allocations: 4.062 kB / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.4694, allocations: 4 kB / 414.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.4705, allocations: 0.7719 MB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4705, allocations: 0 / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.4706, allocations: 27.92 kB / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002581/0.4709, allocations: 80.84 kB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.4709, allocations: 11.98 kB / 415 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/0.4734, allocations: 2.139 MB / 417.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4734, allocations: 0 / 417.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006995/0.4741, allocations: 449.6 kB / 417.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.4743, allocations: 128.7 kB / 417.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.4743, allocations: 4 kB / 417.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.4745, allocations: 15.98 kB / 417.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4747, allocations: 35.89 kB / 417.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.4747, allocations: 15.98 kB / 417.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001855/0.4749, allocations: 180.5 kB / 417.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4749, allocations: 0 / 417.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00049/0.4754, allocations: 87.84 kB / 418 MB, free: 6.816 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001748/0.4756, allocations: 106.6 kB / 418.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007591/0.4763, allocations: 358.3 kB / 418.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4763, allocations: 0 / 418.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004168/0.4768, allocations: 273.3 kB / 418.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.4772, allocations: 56.98 kB / 418.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.4785, allocations: 0.5976 MB / 419.4 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4789, allocations: 0.7636 MB / 420.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.479, allocations: 26.27 kB / 420.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.217e-05/0.4791, allocations: 19.44 kB / 420.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4791, allocations: 0 / 420.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of Templates: time 0.009531/0.4886, allocations: 4.898 MB / 425.1 MB, free: 15.71 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches