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.000998/0.000998, allocations: 84.98 kB / 23 MB, free: 1.5 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.00107/0.00107, allocations: 179.1 kB / 26.4 MB, free: 7.758 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.9139/0.9139, allocations: 158.6 MB / 188.3 MB, free: 2.773 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.232e-06/1.232e-06, allocations: 0 / 252.2 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.52e-05, allocations: 10.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009406/0.009421, allocations: 13.55 MB / 265.8 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01629/0.02571, allocations: 18.51 MB / 284.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001413/0.02713, allocations: 142.4 kB / 284.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001922/0.02905, allocations: 1.148 MB / 285.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.03308, allocations: 2.443 MB / 288 MB, free: 3.277 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.03554, allocations: 1.402 MB / 289.5 MB, free: 1.863 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00596/0.0415, allocations: 6.811 MB / 296.3 MB, free: 11.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.0419, allocations: 262.3 kB / 296.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.04439, allocations: 2.882 MB / 299.4 MB, free: 7.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009311/0.04533, allocations: 0.8215 MB / 300.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.04547, allocations: 76 kB / 300.3 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.04765, allocations: 1.081 MB / 301.4 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.04792, allocations: 349.4 kB / 301.7 MB, free: 5.535 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007441/0.04866, allocations: 0.7748 MB / 302.5 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00317/0.05183, allocations: 2.895 MB / 305.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.05184, allocations: 0 / 305.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.05184, allocations: 0 / 305.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.05185, allocations: 0 / 305.4 MB, free: 1.852 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.003828/0.05568, allocations: 4.156 MB / 309.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.05572, allocations: 15.98 kB / 309.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004212/0.05614, allocations: 477.2 kB / 310 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00291/0.05905, allocations: 2.591 MB / 312.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.05908, allocations: 41 kB / 312.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.05919, allocations: 55.94 kB / 312.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007083/0.0599, allocations: 496.6 kB / 313.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.05991, allocations: 0 / 313.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.05997, allocations: 20 kB / 313.2 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.05999, allocations: 23.92 kB / 313.2 MB, free: 9.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006026/0.06059, allocations: 428.3 kB / 313.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.06394, allocations: 2.375 MB / 316 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.06435, allocations: 285.3 kB / 316.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004243/0.06478, allocations: 377.7 kB / 316.7 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02014/0.08492, allocations: 15.26 MB / 331.9 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003486/0.08527, allocations: 259.5 kB / 332.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.903e-06/0.08527, allocations: 0 / 332.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001033/0.0863, allocations: 0.8423 MB / 333 MB, free: 5.562 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.08634, allocations: 59.41 kB / 333.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/0.0892, allocations: 3.315 MB / 336.4 MB, free: 2.164 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.08925, allocations: 37.7 kB / 336.4 MB, free: 2.121 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.09061, allocations: 1.78 MB / 338.2 MB, free: 332 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.09076, allocations: 178.5 kB / 338.4 MB, free: 152 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000513/0.09127, allocations: 243.9 kB / 338.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.09141, allocations: 0.512 MB / 339.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.09159, allocations: 109.9 kB / 339.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.09203, allocations: 0.6275 MB / 339.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007016/0.09273, allocations: 0.8187 MB / 340.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.09274, allocations: 4 kB / 340.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001156/0.0939, allocations: 1.037 MB / 341.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.09392, allocations: 15.98 kB / 341.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.551e-05/0.09402, allocations: 80 kB / 341.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.09404, allocations: 19.94 kB / 341.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.09453, allocations: 199.7 kB / 342 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.09455, allocations: 27.86 kB / 342.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/0.09524, allocations: 107.2 kB / 342.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.595e-05/0.09533, allocations: 60 kB / 342.2 MB, free: 11.8 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.0003495/0.09568, allocations: 220.2 kB / 342.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.09601, allocations: 433.3 kB / 342.9 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/0.09756, allocations: 1.013 MB / 343.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.09757, allocations: 11.94 kB / 343.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.09757, allocations: 0 / 343.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.09758, allocations: 3.984 kB / 343.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.1003, allocations: 2.201 MB / 346.1 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.922e-05/0.1003, allocations: 71.98 kB / 346.2 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.1006, allocations: 91.88 kB / 346.3 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1006, allocations: 3.938 kB / 346.3 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.1007, allocations: 32 kB / 346.3 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1007, allocations: 4 kB / 346.3 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1007, allocations: 0 / 346.3 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.1017, allocations: 1.057 MB / 347.4 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.1023, allocations: 455 kB / 347.8 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002506/0.1025, allocations: 19.92 kB / 347.8 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005237/0.103, allocations: 15.98 kB / 347.8 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1032, allocations: 63.92 kB / 347.9 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.171e-05/0.1032, allocations: 32 kB / 347.9 MB, free: 5.984 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.1047, allocations: 1.713 MB / 349.7 MB, free: 4.277 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1047, allocations: 4 kB / 349.7 MB, free: 4.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001185/0.1059, allocations: 0.5969 MB / 350.3 MB, free: 3.676 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.004084/0.11, allocations: 0.9297 MB / 351.2 MB, free: 2.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006727/0.1107, allocations: 0.586 MB / 351.8 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1107, allocations: 0 / 351.8 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.111, allocations: 331.8 kB / 352.1 MB, free: 1.766 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004715/0.1157, allocations: 0.558 MB / 352.6 MB, free: 1.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.11/0.2257, allocations: 4.344 MB / 357 MB, free: 88.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.2259, allocations: 401 kB / 357.4 MB, free: 88.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007189/0.2266, allocations: 358.2 kB / 357.7 MB, free: 88.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007896/0.2274, allocations: 0.7224 MB / 358.5 MB, free: 88.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.923e-06/0.2274, allocations: 0 / 358.5 MB, free: 88.46 MB / 330.7 MB Notification: Performance of Templates: time 0.04034/0.2677, allocations: 38.81 MB / 397.3 MB, free: 56.55 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.5091076591052115]