Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008267/0.0008267, allocations: 92.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003205/0.003205, allocations: 158.5 kB / 24.7 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8743/0.8743, allocations: 177 MB / 204.9 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.591e-05/1.72e-05, allocations: 9.312 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01276/0.01277, allocations: 22.25 MB / 348 MB, free: 9.027 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01932/0.0321, allocations: 19.55 MB / 367.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.03514, allocations: 273 kB / 367.8 MB, free: 5.129 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002641/0.03778, allocations: 1.691 MB / 369.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007143/0.04492, allocations: 3.422 MB / 372.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003677/0.0486, allocations: 1.636 MB / 374.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.06048, allocations: 13.24 MB / 387.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009424/0.06143, allocations: 0.4924 MB / 388.3 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002887/0.06431, allocations: 2.988 MB / 391.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.06547, allocations: 1.498 MB / 392.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001675/0.06564, allocations: 140 kB / 392.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002699/0.06834, allocations: 1.268 MB / 394.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003059/0.06864, allocations: 0.6048 MB / 394.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.06968, allocations: 1.406 MB / 396.2 MB, free: 8.598 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004581/0.07426, allocations: 6.503 MB / 402.7 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.07427, allocations: 0 / 402.7 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.07427, allocations: 0 / 402.7 MB, free: 2.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.999e-05/0.07435, allocations: 0 / 402.7 MB, free: 2.07 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.005308/0.07965, allocations: 6.781 MB / 409.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.0797, allocations: 11.98 kB / 409.5 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005339/0.08023, allocations: 0.7841 MB / 410.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003918/0.08415, allocations: 4.379 MB / 414.7 MB, free: 5.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.08419, allocations: 66 kB / 414.7 MB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.08434, allocations: 103.9 kB / 414.8 MB, free: 5.746 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.08568, allocations: 1.313 MB / 416.2 MB, free: 4.414 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.0857, allocations: 0 / 416.2 MB, free: 4.414 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.826e-05/0.08578, allocations: 39.94 kB / 416.2 MB, free: 4.375 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.0858, allocations: 31.98 kB / 416.2 MB, free: 4.344 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.08732, allocations: 1.488 MB / 417.7 MB, free: 2.852 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005153/0.09247, allocations: 5.121 MB / 422.8 MB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000983/0.09345, allocations: 0.8719 MB / 423.7 MB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009312/0.09438, allocations: 1.064 MB / 424.8 MB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1658/0.2602, allocations: 27.06 MB / 451.8 MB, free: 118.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008089/0.261, allocations: 0.5529 MB / 452.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 2.695e-06/0.261, allocations: 0.5625 kB / 452.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.002251/0.2632, allocations: 1.913 MB / 454.3 MB, free: 118.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.2633, allocations: 64.19 kB / 454.4 MB, free: 118.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/0.2668, allocations: 5.631 MB / 460 MB, free: 116.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.2669, allocations: 42.2 kB / 460 MB, free: 116.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.268, allocations: 2.956 MB / 463 MB, free: 113.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.2681, allocations: 312.7 kB / 463.3 MB, free: 113.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.2684, allocations: 414.6 kB / 463.7 MB, free: 113.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.2684, allocations: 312.2 kB / 464 MB, free: 112.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.2688, allocations: 403.8 kB / 464.4 MB, free: 112.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.2694, allocations: 1.087 MB / 465.5 MB, free: 111.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.2704, allocations: 1.616 MB / 467.1 MB, free: 109.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.2704, allocations: 8 kB / 467.1 MB, free: 109.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001549/0.272, allocations: 2.236 MB / 469.3 MB, free: 107 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.272, allocations: 16 kB / 469.4 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.865e-05/0.2721, allocations: 164 kB / 469.5 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.134e-05/0.2721, allocations: 32 kB / 469.6 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005498/0.2727, allocations: 362.1 kB / 469.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.2727, allocations: 47.8 kB / 470 MB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/0.2735, allocations: 194.8 kB / 470.1 MB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.369e-05/0.2736, allocations: 124 kB / 470.3 MB, free: 106.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0006661/0.2742, allocations: 0.7183 MB / 471 MB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.2745, allocations: 0.7453 MB / 471.7 MB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.2766, allocations: 2.151 MB / 473.9 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.2766, allocations: 8 kB / 473.9 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2766, allocations: 2.906 kB / 473.9 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2766, allocations: 3.984 kB / 473.9 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.2791, allocations: 3.357 MB / 477.3 MB, free: 99.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.259e-05/0.2791, allocations: 140 kB / 477.4 MB, free: 99.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.2795, allocations: 155.9 kB / 477.5 MB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.2795, allocations: 6.844 kB / 477.5 MB, free: 99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.107e-05/0.2795, allocations: 57.11 kB / 477.6 MB, free: 98.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.2796, allocations: 4 kB / 477.6 MB, free: 98.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2796, allocations: 3.938 kB / 477.6 MB, free: 98.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.2811, allocations: 2.192 MB / 479.8 MB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005811/0.2817, allocations: 0.7723 MB / 480.6 MB, free: 95.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.282, allocations: 19.92 kB / 480.6 MB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.2825, allocations: 35.97 kB / 480.6 MB, free: 95.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.2826, allocations: 108.5 kB / 480.7 MB, free: 95.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.624e-05/0.2827, allocations: 64 kB / 480.8 MB, free: 95.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002157/0.2849, allocations: 3.608 MB / 484.4 MB, free: 92.15 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2849, allocations: 0 / 484.4 MB, free: 92.15 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001121/0.286, allocations: 1.088 MB / 485.5 MB, free: 91.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0008975/0.2869, allocations: 1.274 MB / 486.8 MB, free: 90.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.2879, allocations: 1.37 MB / 488.1 MB, free: 88.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2879, allocations: 64 / 488.1 MB, free: 88.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004854/0.2884, allocations: 0.7359 MB / 488.9 MB, free: 87.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.2906, allocations: 1.171 MB / 490 MB, free: 86.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.296, allocations: 8.237 MB / 498.3 MB, free: 78.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008686/0.2969, allocations: 2.109 MB / 0.4887 GB, free: 76.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.2972, allocations: 292.5 kB / 0.4889 GB, free: 76.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2972, allocations: 0 / 0.4889 GB, free: 76.02 MB / 410.7 MB Notification: Performance of Templates: time 0.05478/0.3519, allocations: 73.65 MB / 0.5609 GB, free: 2.68 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.885086562484503]