Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 79.73 kB / 21.97 MB, free: 2.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 165.5 kB / 25.33 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8954/0.8954, allocations: 158.6 MB / 187.2 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/2.02e-05, allocations: 6.25 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.00921/0.009231, allocations: 13.97 MB / 265 MB, free: 9.488 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01663/0.02586, allocations: 18.89 MB / 283.9 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.02738, allocations: 142.4 kB / 284 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.02953, allocations: 1.141 MB / 285.2 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004806/0.03434, allocations: 2.447 MB / 287.6 MB, free: 2.773 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.03725, allocations: 1.394 MB / 289 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006253/0.0435, allocations: 6.815 MB / 295.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000519/0.04402, allocations: 262.3 kB / 296.1 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.04672, allocations: 2.889 MB / 299 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008615/0.04758, allocations: 0.8176 MB / 299.8 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.04777, allocations: 72 kB / 299.9 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002263/0.05003, allocations: 1.085 MB / 300.9 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.05024, allocations: 345.5 kB / 301.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006688/0.05091, allocations: 0.7826 MB / 302.1 MB, free: 4.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002671/0.05358, allocations: 2.891 MB / 305 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.05359, allocations: 3.984 kB / 305 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.05359, allocations: 0 / 305 MB, free: 1.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.21e-05/0.05365, allocations: 4 kB / 305 MB, free: 1.34 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003681/0.05733, allocations: 4.11 MB / 309.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.05737, allocations: 15.97 kB / 309.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.05778, allocations: 477.2 kB / 309.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.05988, allocations: 2.591 MB / 312.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.0599, allocations: 40.98 kB / 312.2 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/0.05999, allocations: 51.95 kB / 312.2 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008067/0.0608, allocations: 0.5395 MB / 312.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.06082, allocations: 0 / 312.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.06088, allocations: 16 kB / 312.8 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/0.0609, allocations: 27.98 kB / 312.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.06172, allocations: 486.4 kB / 313.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004076/0.06579, allocations: 2.933 MB / 316.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005315/0.06632, allocations: 325.4 kB / 316.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005364/0.06686, allocations: 421.8 kB / 317 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/0.08569, allocations: 15.26 MB / 332.2 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.08609, allocations: 279.5 kB / 332.5 MB, free: 5.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.917e-06/0.08609, allocations: 3.984 kB / 332.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001193/0.08729, allocations: 0.897 MB / 333.4 MB, free: 4.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.08733, allocations: 55.41 kB / 333.4 MB, free: 4.184 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/0.09059, allocations: 3.352 MB / 336.8 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.09064, allocations: 37.7 kB / 336.8 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/0.09197, allocations: 1.761 MB / 338.6 MB, free: 15 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.09211, allocations: 178.6 kB / 338.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.09235, allocations: 240 kB / 339 MB, free: 14.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.09249, allocations: 0.5121 MB / 339.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.09273, allocations: 129.9 kB / 339.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.09324, allocations: 0.651 MB / 340.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008109/0.09405, allocations: 0.85 MB / 341.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.09406, allocations: 4 kB / 341.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001687/0.09574, allocations: 1.108 MB / 342.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.09577, allocations: 11.94 kB / 342.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.164e-05/0.09586, allocations: 84 kB / 342.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.09588, allocations: 16 kB / 342.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005254/0.09641, allocations: 203.6 kB / 342.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.175e-05/0.09643, allocations: 23.92 kB / 342.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/0.0971, allocations: 107.5 kB / 342.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.545e-05/0.09719, allocations: 64 kB / 342.8 MB, free: 10.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003563/0.09755, allocations: 216.2 kB / 343 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/0.09789, allocations: 437.3 kB / 343.4 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.09949, allocations: 1.04 MB / 344.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.0995, allocations: 4 kB / 344.4 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.0995, allocations: 0 / 344.4 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.09951, allocations: 7.984 kB / 344.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.1019, allocations: 2.164 MB / 346.6 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.658e-05/0.102, allocations: 79.92 kB / 346.7 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002856/0.1023, allocations: 79.94 kB / 346.8 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.1023, allocations: 4 kB / 346.8 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.873e-05/0.1023, allocations: 32 kB / 346.8 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1023, allocations: 8 kB / 346.8 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1023, allocations: 4 kB / 346.8 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1035, allocations: 1.103 MB / 347.9 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/0.104, allocations: 455 kB / 348.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.1043, allocations: 12 kB / 348.4 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004829/0.1047, allocations: 19.98 kB / 348.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.1049, allocations: 59.92 kB / 348.5 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.474e-05/0.1049, allocations: 36 kB / 348.5 MB, free: 4.496 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00195/0.1069, allocations: 1.835 MB / 350.3 MB, free: 2.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1069, allocations: 0 / 350.3 MB, free: 2.668 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001079/0.108, allocations: 0.6048 MB / 350.9 MB, free: 2.062 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009537/0.1089, allocations: 0.8388 MB / 351.8 MB, free: 1.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007946/0.1097, allocations: 0.6206 MB / 352.4 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1097, allocations: 0 / 352.4 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.1101, allocations: 348.5 kB / 352.7 MB, free: 196 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1018/0.2119, allocations: 0.5621 MB / 353.3 MB, free: 90.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.2158, allocations: 4.342 MB / 357.6 MB, free: 88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.216, allocations: 405 kB / 358 MB, free: 87.9 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005363/0.2166, allocations: 364.8 kB / 358.4 MB, free: 87.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.2167, allocations: 151.6 kB / 358.5 MB, free: 87.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.2167, allocations: 0 / 358.5 MB, free: 87.87 MB / 330.7 MB Notification: Performance of Templates: time 0.03504/0.2517, allocations: 40.04 MB / 398.6 MB, free: 54 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.416855046991259]