Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.907/0.907, allocations: 173.3 MB / 201.1 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.136e-05/1.268e-05, allocations: 6.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009875/0.009888, allocations: 14.64 MB / 282.6 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1241/0.134, allocations: 19.82 MB / 302.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/0.1356, allocations: 132.8 kB / 302.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002458/0.138, allocations: 1.168 MB / 303.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005353/0.1434, allocations: 2.483 MB / 306.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003504/0.1469, allocations: 1.444 MB / 307.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006513/0.1534, allocations: 6.963 MB / 314.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004739/0.1539, allocations: 264.9 kB / 314.9 MB, free: 8.773 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.1566, allocations: 3.02 MB / 317.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008495/0.1575, allocations: 0.8486 MB / 318.8 MB, free: 6.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.1576, allocations: 76 kB / 318.8 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002264/0.1599, allocations: 1.206 MB / 320 MB, free: 5.176 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.1601, allocations: 341.5 kB / 320.4 MB, free: 4.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006583/0.1607, allocations: 0.7748 MB / 321.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002515/0.1633, allocations: 2.871 MB / 324 MB, free: 1.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1633, allocations: 0 / 324 MB, free: 1.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1633, allocations: 0 / 324 MB, free: 1.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.1633, allocations: 0 / 324 MB, free: 1.18 MB / 266.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.003771/0.1671, allocations: 4.09 MB / 328.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1671, allocations: 8.922 kB / 328.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/0.1675, allocations: 477.2 kB / 328.6 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.1695, allocations: 2.567 MB / 331.1 MB, free: 9.887 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.1695, allocations: 37 kB / 331.2 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.575e-05/0.1696, allocations: 59.94 kB / 331.2 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006801/0.1703, allocations: 0.5397 MB / 331.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1703, allocations: 0 / 331.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.1703, allocations: 23.94 kB / 331.8 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1703, allocations: 23.92 kB / 331.8 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005731/0.1709, allocations: 486.3 kB / 332.3 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.1743, allocations: 2.922 MB / 335.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.1747, allocations: 325.4 kB / 335.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003924/0.1751, allocations: 417.8 kB / 335.9 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.1893, allocations: 15.2 MB / 351.2 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.1896, allocations: 279.7 kB / 351.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.1896, allocations: 0 / 351.4 MB, free: 5.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008412/0.1904, allocations: 0.8815 MB / 352.3 MB, free: 4.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.1904, allocations: 63.41 kB / 352.4 MB, free: 4.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.193, allocations: 3.335 MB / 355.7 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.1931, allocations: 37.7 kB / 355.7 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009609/0.194, allocations: 1.757 MB / 357.5 MB, free: 15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.343e-05/0.1941, allocations: 178.5 kB / 357.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1943, allocations: 240 kB / 357.9 MB, free: 14.58 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1944, allocations: 0.5082 MB / 358.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.1946, allocations: 129.9 kB / 358.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.1949, allocations: 0.655 MB / 359.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005931/0.1955, allocations: 0.8461 MB / 360 MB, free: 11.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1955, allocations: 4 kB / 360 MB, free: 11.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001095/0.1966, allocations: 1.095 MB / 361.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1967, allocations: 15.98 kB / 361.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.677e-05/0.1967, allocations: 80 kB / 361.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1967, allocations: 16.78 kB / 361.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.1971, allocations: 203.6 kB / 361.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.1971, allocations: 23.92 kB / 361.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.1975, allocations: 111.9 kB / 361.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.1976, allocations: 64 kB / 361.6 MB, free: 10.34 MB / 314.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.0002861/0.1979, allocations: 216.2 kB / 361.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.1981, allocations: 429.4 kB / 362.3 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.1993, allocations: 1.047 MB / 363.3 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.1993, allocations: 4 kB / 363.3 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1993, allocations: 0 / 363.3 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1993, allocations: 15.23 kB / 363.3 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.2011, allocations: 2.14 MB / 365.5 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.918e-05/0.2011, allocations: 68 kB / 365.5 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.2013, allocations: 83.88 kB / 365.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2013, allocations: 4 kB / 365.6 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.2014, allocations: 36.05 kB / 365.7 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2014, allocations: 7.938 kB / 365.7 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2014, allocations: 0 / 365.7 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008718/0.2023, allocations: 1.104 MB / 366.8 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003642/0.2026, allocations: 459 kB / 367.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.2028, allocations: 15.94 kB / 367.2 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.2031, allocations: 19.92 kB / 367.3 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.2032, allocations: 63.92 kB / 367.3 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.2032, allocations: 39.98 kB / 367.4 MB, free: 4.523 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001616/0.2049, allocations: 1.815 MB / 369.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2049, allocations: 8.031 kB / 369.2 MB, free: 2.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007031/0.2056, allocations: 0.593 MB / 369.8 MB, free: 2.113 MB / 314.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.0007088/0.2063, allocations: 0.8276 MB / 370.6 MB, free: 1.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005854/0.2069, allocations: 0.6164 MB / 371.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-06/0.2069, allocations: 1 kB / 371.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.2071, allocations: 356 kB / 371.6 MB, free: 252 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.2085, allocations: 0.6687 MB / 372.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.2121, allocations: 4.323 MB / 376.6 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.2123, allocations: 402.4 kB / 377 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005295/0.2128, allocations: 361.3 kB / 377.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.213, allocations: 152.5 kB / 377.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of SimCode: time 5.11e-07/0.213, allocations: 0 / 377.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Templates: time 0.04274/0.2557, allocations: 39.83 MB / 417.3 MB, free: 2.965 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.268978588283062]