Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001313/0.001313, allocations: 80.41 kB / 22.21 MB, free: 2.285 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.00178/0.00178, allocations: 166.4 kB / 25.61 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9265/0.9265, allocations: 177.1 MB / 206 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 274.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.275e-05/1.382e-05, allocations: 2.312 kB / 274.2 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009473/0.009487, allocations: 14.25 MB / 288.4 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01777/0.02725, allocations: 19.48 MB / 307.9 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.02982, allocations: 134.5 kB / 308 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.03277, allocations: 1.168 MB / 309.2 MB, free: 1.297 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007451/0.04022, allocations: 2.479 MB / 311.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004261/0.04448, allocations: 1.46 MB / 313.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008426/0.05291, allocations: 7.026 MB / 320.2 MB, free: 6.285 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007478/0.05366, allocations: 270.2 kB / 320.4 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003586/0.05724, allocations: 3.1 MB / 323.5 MB, free: 2.887 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.05849, allocations: 0.8447 MB / 324.4 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.05865, allocations: 76 kB / 324.4 MB, free: 1.965 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002793/0.06144, allocations: 1.202 MB / 325.7 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.06167, allocations: 345.5 kB / 326 MB, free: 432 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009184/0.06259, allocations: 0.7748 MB / 326.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003399/0.06599, allocations: 2.875 MB / 329.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.06599, allocations: 0 / 329.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.06599, allocations: 4 kB / 329.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.98e-05/0.06605, allocations: 0 / 329.6 MB, free: 12.75 MB / 314.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.003561/0.06962, allocations: 4.136 MB / 333.8 MB, free: 8.551 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.06965, allocations: 8.031 kB / 333.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003893/0.07004, allocations: 473.2 kB / 334.2 MB, free: 8.078 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.07236, allocations: 2.571 MB / 336.8 MB, free: 5.414 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.07239, allocations: 37 kB / 336.9 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.083e-05/0.07248, allocations: 59.89 kB / 336.9 MB, free: 5.316 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005949/0.07307, allocations: 488.7 kB / 337.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.07309, allocations: 4 kB / 337.4 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.639e-05/0.07314, allocations: 20 kB / 337.4 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.07315, allocations: 19.98 kB / 337.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.0736, allocations: 424.3 kB / 337.8 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.07678, allocations: 2.363 MB / 340.2 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.07714, allocations: 289.3 kB / 340.5 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.07745, allocations: 385.5 kB / 340.9 MB, free: 1.285 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1472/0.2247, allocations: 15.21 MB / 356.1 MB, free: 41.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.225, allocations: 254.5 kB / 356.3 MB, free: 41.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.225, allocations: 0.9688 kB / 356.3 MB, free: 41.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009572/0.2259, allocations: 0.8284 MB / 357.2 MB, free: 41.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.226, allocations: 66.03 kB / 357.2 MB, free: 41.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00235/0.2283, allocations: 3.288 MB / 360.5 MB, free: 40.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.2284, allocations: 33.2 kB / 360.5 MB, free: 40.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00094/0.2293, allocations: 1.786 MB / 362.3 MB, free: 40.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.976e-05/0.2294, allocations: 177.2 kB / 362.5 MB, free: 40.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.2296, allocations: 243.1 kB / 362.7 MB, free: 40.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.588e-05/0.2296, allocations: 0.5157 MB / 363.2 MB, free: 39.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.2297, allocations: 106 kB / 363.4 MB, free: 39.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.23, allocations: 0.632 MB / 364 MB, free: 38.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.2305, allocations: 0.8157 MB / 364.8 MB, free: 38.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2305, allocations: 4 kB / 364.8 MB, free: 38.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008691/0.2314, allocations: 1.038 MB / 365.8 MB, free: 37.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.2314, allocations: 12 kB / 365.9 MB, free: 37.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/0.2315, allocations: 81.94 kB / 365.9 MB, free: 37.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.2315, allocations: 16 kB / 366 MB, free: 37.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.2318, allocations: 207.2 kB / 366.2 MB, free: 37.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.2318, allocations: 26.52 kB / 366.2 MB, free: 37.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005299/0.2324, allocations: 98.67 kB / 366.3 MB, free: 36.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-05/0.2324, allocations: 60.84 kB / 366.3 MB, free: 36.91 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.0002751/0.2327, allocations: 224.6 kB / 366.6 MB, free: 36.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.2329, allocations: 432 kB / 367 MB, free: 36.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.2339, allocations: 1.007 MB / 368 MB, free: 35.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.2339, allocations: 4 kB / 368 MB, free: 35.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2339, allocations: 4 kB / 368 MB, free: 35.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2339, allocations: 5.969 kB / 368 MB, free: 35.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.2355, allocations: 2.187 MB / 370.2 MB, free: 33.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.722e-05/0.2356, allocations: 68.62 kB / 370.3 MB, free: 33.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.2358, allocations: 83.69 kB / 370.3 MB, free: 33.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.2358, allocations: 4 kB / 370.3 MB, free: 33.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.2358, allocations: 28 kB / 370.4 MB, free: 33.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2358, allocations: 9.172 kB / 370.4 MB, free: 33.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2358, allocations: 4 kB / 370.4 MB, free: 33.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006495/0.2365, allocations: 1.056 MB / 371.4 MB, free: 32.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.2368, allocations: 455.5 kB / 371.9 MB, free: 32.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.237, allocations: 8 kB / 371.9 MB, free: 32.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.2374, allocations: 23.98 kB / 371.9 MB, free: 32.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.569e-05/0.2374, allocations: 63.86 kB / 372 MB, free: 32.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.2375, allocations: 32 kB / 372 MB, free: 32.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008369/0.2383, allocations: 1.706 MB / 373.7 MB, free: 30.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2383, allocations: 0 / 373.7 MB, free: 30.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000839/0.2392, allocations: 0.6013 MB / 374.3 MB, free: 29.99 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.0007571/0.2399, allocations: 0.924 MB / 375.2 MB, free: 29.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.2404, allocations: 0.5835 MB / 375.8 MB, free: 28.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2404, allocations: 0 / 375.8 MB, free: 28.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002836/0.2407, allocations: 329 kB / 376.1 MB, free: 28.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.242, allocations: 0.6726 MB / 376.8 MB, free: 27.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.2451, allocations: 4.322 MB / 381.1 MB, free: 23.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.2453, allocations: 402.4 kB / 381.5 MB, free: 22.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005837/0.2459, allocations: 353.3 kB / 381.9 MB, free: 22.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008015/0.2467, allocations: 0.7283 MB / 382.6 MB, free: 21.83 MB / 314.7 MB Notification: Performance of SimCode: time 2.685e-06/0.2467, allocations: 0 / 382.6 MB, free: 21.83 MB / 314.7 MB Notification: Performance of Templates: time 0.04455/0.2913, allocations: 38.65 MB / 421.3 MB, free: 15.89 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5933028869330883]