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.001688/0.001689, allocations: 108.8 kB / 17.06 MB, free: 6.137 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.001772/0.001772, allocations: 191 kB / 18 MB, free: 5.219 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.529/1.529, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3575, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004219/0.3618, allocations: 2.919 MB / 403.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.3631, allocations: 0.7324 MB / 404.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.3632, allocations: 4 kB / 404.4 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.3634, allocations: 47.5 kB / 404.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.3637, allocations: 107 kB / 404.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.364, allocations: 103.8 kB / 404.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004354/0.3644, allocations: 402.4 kB / 405 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.3647, allocations: 127.2 kB / 405.2 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.3649, allocations: 159.4 kB / 405.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.3651, allocations: 159.4 kB / 405.5 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.523e-05/0.3652, allocations: 36 kB / 405.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.368e-05/0.3653, allocations: 40 kB / 405.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.3654, allocations: 75.7 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.3656, allocations: 175.2 kB / 405.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.366, allocations: 435.7 kB / 406.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.366, allocations: 4 kB / 406.2 MB, free: 3.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.366, allocations: 0 / 406.2 MB, free: 3.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.366, allocations: 7.922 kB / 406.2 MB, free: 3.371 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.001108/0.3672, allocations: 0.6129 MB / 406.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3672, allocations: 11.89 kB / 406.8 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.883e-05/0.3673, allocations: 44.41 kB / 406.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.3677, allocations: 271.8 kB / 407.2 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3677, allocations: 20.94 kB / 407.2 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.3678, allocations: 24.38 kB / 407.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/0.3683, allocations: 300.8 kB / 407.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.3683, allocations: 0 / 407.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.3684, allocations: 8 kB / 407.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3684, allocations: 11.98 kB / 407.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.3688, allocations: 202.1 kB / 407.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3704, allocations: 1.148 MB / 408.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/0.3709, allocations: 222.6 kB / 409.1 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.3712, allocations: 142.1 kB / 409.2 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.3712, allocations: 4 kB / 409.2 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.3715, allocations: 166.7 kB / 409.4 MB, free: 0 / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.3715, allocations: 0 / 409.4 MB, free: 0 / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001383/0.3729, allocations: 0.5169 MB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3731, allocations: 132.5 kB / 410 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3733, allocations: 241 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.3733, allocations: 37.69 kB / 410.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.3735, allocations: 164.4 kB / 410.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.3736, allocations: 67 kB / 410.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3737, allocations: 57.55 kB / 410.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3738, allocations: 338.8 kB / 410.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.374, allocations: 71.97 kB / 411 MB, free: 14.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.3742, allocations: 125.1 kB / 411.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.3745, allocations: 175.3 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3745, allocations: 4 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004945/0.375, allocations: 286 kB / 411.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.375, allocations: 8 kB / 411.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.375, allocations: 3.938 kB / 411.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/0.3754, allocations: 96.89 kB / 411.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.3756, allocations: 23.98 kB / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00237/0.3779, allocations: 2.154 MB / 413.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.3782, allocations: 35.77 kB / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3782, allocations: 8.062 kB / 413.9 MB, free: 11.21 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.0001605/0.3784, allocations: 142.5 kB / 414 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.3784, allocations: 27.66 kB / 414.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.3785, allocations: 34.17 kB / 414.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3785, allocations: 0 / 414.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3785, allocations: 0 / 414.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3785, allocations: 11.92 kB / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009998/0.3795, allocations: 0.7718 MB / 414.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3795, allocations: 0 / 414.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.3796, allocations: 27.92 kB / 414.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002442/0.3799, allocations: 84.8 kB / 415 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.3799, allocations: 4 kB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.3823, allocations: 2.143 MB / 417.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3823, allocations: 0 / 417.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006462/0.383, allocations: 449.5 kB / 417.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3831, allocations: 128.8 kB / 417.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/0.3831, allocations: 4 kB / 417.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.3833, allocations: 19.98 kB / 417.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3834, allocations: 35.89 kB / 417.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.3835, allocations: 8 kB / 417.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001935/0.3837, allocations: 180.5 kB / 417.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3837, allocations: 0 / 417.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.3841, allocations: 87.84 kB / 418 MB, free: 6.828 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.0001838/0.3843, allocations: 107.2 kB / 418.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.3851, allocations: 358.3 kB / 418.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3852, allocations: 0 / 418.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005073/0.3857, allocations: 274.2 kB / 418.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.3861, allocations: 56.75 kB / 418.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.3874, allocations: 0.5937 MB / 419.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.388, allocations: 0.7675 MB / 420.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.3881, allocations: 18.28 kB / 420.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.3882, allocations: 23.44 kB / 420.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3882, allocations: 0 / 420.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of Templates: time 0.01111/0.3993, allocations: 4.901 MB / 425.1 MB, free: 15.73 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