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.00132/0.00132, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.004191/0.004191, allocations: 149.5 kB / 24.97 MB, free: 8.312 MB / 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.9566/0.9566, allocations: 173.3 MB / 201.5 MB, free: 9.328 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.522e-06/1.522e-06, allocations: 0 / 268 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.285e-05/2.438e-05, allocations: 2.312 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009948/0.009972, allocations: 14.61 MB / 282.7 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1213/0.1313, allocations: 19.78 MB / 302.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.1331, allocations: 136.1 kB / 302.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.1353, allocations: 1.172 MB / 303.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005595/0.1409, allocations: 2.472 MB / 306.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003937/0.1449, allocations: 1.444 MB / 307.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006578/0.1515, allocations: 6.835 MB / 314.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005816/0.152, allocations: 262.1 kB / 314.8 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.154, allocations: 1.612 MB / 316.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.1551, allocations: 0.8176 MB / 317.2 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.1553, allocations: 73.19 kB / 317.3 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.158, allocations: 1.209 MB / 318.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.1581, allocations: 338.4 kB / 318.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008279/0.1589, allocations: 0.766 MB / 319.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002568/0.1615, allocations: 2.862 MB / 322.4 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1615, allocations: 0 / 322.4 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1615, allocations: 4 kB / 322.4 MB, free: 3.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.993e-05/0.1615, allocations: 0 / 322.4 MB, free: 3.02 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.002893/0.1644, allocations: 4.071 MB / 326.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1645, allocations: 12.92 kB / 326.5 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003925/0.1649, allocations: 477.2 kB / 327 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/0.1672, allocations: 2.641 MB / 329.6 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.1673, allocations: 37 kB / 329.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.406e-05/0.1674, allocations: 59.89 kB / 329.7 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007517/0.1681, allocations: 0.5319 MB / 330.2 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.1681, allocations: 0 / 330.2 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.141e-05/0.1682, allocations: 24 kB / 330.3 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.1682, allocations: 27.92 kB / 330.3 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006276/0.1688, allocations: 486.4 kB / 330.8 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003412/0.1723, allocations: 2.918 MB / 333.7 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.1727, allocations: 325.4 kB / 334 MB, free: 7.195 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005411/0.1733, allocations: 425.8 kB / 334.4 MB, free: 6.773 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.1887, allocations: 15.21 MB / 349.6 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.189, allocations: 275.8 kB / 349.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.189, allocations: 0 / 349.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009489/0.19, allocations: 0.8776 MB / 350.8 MB, free: 6.004 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.19, allocations: 59.41 kB / 350.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.1928, allocations: 3.331 MB / 354.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.1928, allocations: 33.7 kB / 354.2 MB, free: 2.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.1939, allocations: 1.765 MB / 356 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.194, allocations: 178.6 kB / 356.1 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.1942, allocations: 236 kB / 356.4 MB, free: 368 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1944, allocations: 0.5121 MB / 356.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.1946, allocations: 129.9 kB / 357 MB, free: 15.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.195, allocations: 0.651 MB / 357.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00074/0.1957, allocations: 0.85 MB / 358.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1957, allocations: 8 kB / 358.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001329/0.1971, allocations: 1.092 MB / 359.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1971, allocations: 8 kB / 359.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.908e-05/0.1972, allocations: 84 kB / 359.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.1972, allocations: 19.98 kB / 359.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/0.1976, allocations: 199.7 kB / 359.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.1976, allocations: 27.67 kB / 359.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.1981, allocations: 111.2 kB / 360.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.1982, allocations: 64 kB / 360.1 MB, free: 12.12 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.0003257/0.1985, allocations: 221.8 kB / 360.3 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/0.1987, allocations: 429.4 kB / 360.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.2001, allocations: 1.043 MB / 361.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2001, allocations: 7.984 kB / 361.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2001, allocations: 0 / 361.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2001, allocations: 3.938 kB / 361.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.2021, allocations: 2.14 MB / 363.9 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.365e-05/0.2021, allocations: 71.98 kB / 364 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.2024, allocations: 83.88 kB / 364.1 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2024, allocations: 4 kB / 364.1 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.2024, allocations: 32 kB / 364.1 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2024, allocations: 3.938 kB / 364.1 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2024, allocations: 7.938 kB / 364.1 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000966/0.2034, allocations: 1.108 MB / 365.3 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.2038, allocations: 451 kB / 365.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.204, allocations: 15.98 kB / 365.7 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.2043, allocations: 23.92 kB / 365.7 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.2045, allocations: 59.92 kB / 365.8 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.2045, allocations: 36 kB / 365.8 MB, free: 6.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001779/0.2063, allocations: 1.819 MB / 367.6 MB, free: 4.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2063, allocations: 0 / 367.6 MB, free: 4.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008952/0.2072, allocations: 0.6008 MB / 368.2 MB, free: 3.898 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.0008554/0.208, allocations: 0.8348 MB / 369.1 MB, free: 3.051 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006851/0.2087, allocations: 0.6235 MB / 369.7 MB, free: 2.398 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2087, allocations: 1.875 kB / 369.7 MB, free: 2.398 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.209, allocations: 348.1 kB / 370 MB, free: 2.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.2105, allocations: 0.6649 MB / 370.7 MB, free: 1.367 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.2147, allocations: 4.319 MB / 375 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.215, allocations: 398.4 kB / 375.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006575/0.2156, allocations: 361.3 kB / 375.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.2158, allocations: 152.4 kB / 375.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2158, allocations: 4 kB / 375.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of Templates: time 0.04183/0.2576, allocations: 33.39 MB / 409.3 MB, free: 11.21 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.495236872928217]