Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001318/0.001318, allocations: 79.94 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001344/0.001344, allocations: 150.6 kB / 23.94 MB, free: 4.164 MB / 14.72 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 1.413/1.413, allocations: 173.4 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.142e-05, allocations: 10.16 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02174/0.02176, allocations: 22.23 MB / 341.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03015/0.05191, allocations: 19.53 MB / 360.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005217/0.05713, allocations: 269.1 kB / 360.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004764/0.0619, allocations: 1.695 MB / 362.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.07304, allocations: 3.418 MB / 366.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004871/0.07791, allocations: 1.628 MB / 367.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02212/0.1, allocations: 13.08 MB / 380.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.1017, allocations: 0.4887 MB / 381.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005024/0.1067, allocations: 2.996 MB / 384.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002636/0.1093, allocations: 1.498 MB / 385.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004264/0.1097, allocations: 139.9 kB / 385.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003715/0.1135, allocations: 1.26 MB / 387.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006582/0.1141, allocations: 0.6087 MB / 387.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002416/0.1165, allocations: 1.398 MB / 389.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009684/0.1262, allocations: 6.499 MB / 395.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1262, allocations: 3.938 kB / 395.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1262, allocations: 0 / 395.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001561/0.1264, allocations: 0 / 395.7 MB, free: 14.64 MB / 366.1 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.01068/0.137, allocations: 6.785 MB / 402.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1371, allocations: 8.922 kB / 402.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.1381, allocations: 0.7803 MB / 403.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00733/0.1454, allocations: 4.379 MB / 407.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-05/0.1455, allocations: 66 kB / 407.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.1457, allocations: 99.91 kB / 407.8 MB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.1482, allocations: 1.309 MB / 409.1 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1482, allocations: 0 / 409.1 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.1484, allocations: 39.94 kB / 409.1 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-05/0.1484, allocations: 43.97 kB / 409.2 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.1512, allocations: 1.484 MB / 410.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.1613, allocations: 5.105 MB / 415.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.1632, allocations: 0.8875 MB / 416.6 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.1649, allocations: 1.064 MB / 417.7 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05138/0.2163, allocations: 26.99 MB / 444.7 MB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.2174, allocations: 0.5606 MB / 445.2 MB, free: 11.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 4.208e-06/0.2174, allocations: 0 / 445.2 MB, free: 11.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.00416/0.2216, allocations: 1.903 MB / 447.2 MB, free: 10.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.2217, allocations: 68.05 kB / 447.2 MB, free: 10 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008/0.2297, allocations: 5.629 MB / 452.8 MB, free: 4.398 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.2298, allocations: 41.7 kB / 452.9 MB, free: 4.352 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003004/0.2328, allocations: 2.957 MB / 455.8 MB, free: 1.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.2332, allocations: 301.4 kB / 456.1 MB, free: 1.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005718/0.2338, allocations: 415 kB / 456.5 MB, free: 0.6758 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2339, allocations: 309.1 kB / 456.8 MB, free: 380 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.2349, allocations: 407.9 kB / 457.2 MB, free: 15.97 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.2365, allocations: 1.087 MB / 458.3 MB, free: 14.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002663/0.2391, allocations: 1.611 MB / 459.9 MB, free: 12.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/0.2391, allocations: 8 kB / 460 MB, free: 12.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004056/0.2432, allocations: 2.242 MB / 462.2 MB, free: 10.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.2432, allocations: 15.98 kB / 462.2 MB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/0.2434, allocations: 160 kB / 462.4 MB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.808e-05/0.2435, allocations: 36.03 kB / 462.4 MB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.2448, allocations: 359.4 kB / 462.8 MB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.943e-05/0.2449, allocations: 51.78 kB / 462.8 MB, free: 9.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.2467, allocations: 202.5 kB / 463 MB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002033/0.2469, allocations: 124 kB / 463.1 MB, free: 9.422 MB / 430.1 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.001412/0.2483, allocations: 0.7159 MB / 463.8 MB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008442/0.2491, allocations: 0.7492 MB / 464.6 MB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/0.2539, allocations: 2.147 MB / 466.7 MB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.254, allocations: 8 kB / 466.7 MB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.254, allocations: 0 / 466.7 MB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.254, allocations: 3.984 kB / 466.7 MB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00576/0.2597, allocations: 3.371 MB / 470.1 MB, free: 2.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001977/0.2599, allocations: 140 kB / 470.3 MB, free: 2.211 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/0.2608, allocations: 147.9 kB / 470.4 MB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-06/0.2608, allocations: 8 kB / 470.4 MB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.2609, allocations: 64 kB / 470.5 MB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.2609, allocations: 0 / 470.5 MB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2609, allocations: 7.938 kB / 470.5 MB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1408/0.4017, allocations: 2.184 MB / 472.7 MB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/0.4035, allocations: 0.7728 MB / 473.4 MB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006371/0.4041, allocations: 18 kB / 473.4 MB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.4054, allocations: 32.11 kB / 473.5 MB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.4057, allocations: 102.6 kB / 473.6 MB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.4058, allocations: 70.56 kB / 473.6 MB, free: 133.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005394/0.4112, allocations: 3.608 MB / 477.3 MB, free: 132.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4112, allocations: 1.812 kB / 477.3 MB, free: 132.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002496/0.4137, allocations: 1.084 MB / 478.3 MB, free: 132.8 MB / 430.1 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.001795/0.4155, allocations: 1.271 MB / 479.6 MB, free: 132.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.418, allocations: 1.367 MB / 481 MB, free: 132.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.418, allocations: 0 / 481 MB, free: 132.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.4191, allocations: 0.7333 MB / 481.7 MB, free: 131.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/0.4243, allocations: 1.177 MB / 482.9 MB, free: 131.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.4345, allocations: 8.129 MB / 491 MB, free: 127.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.4361, allocations: 2.105 MB / 493.1 MB, free: 127 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001912/0.438, allocations: 0.6868 MB / 493.8 MB, free: 126.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.4383, allocations: 282.7 kB / 494.1 MB, free: 126.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4383, allocations: 0 / 494.1 MB, free: 126.8 MB / 430.1 MB Notification: Performance of Templates: time 0.07933/0.5177, allocations: 57.3 MB / 0.5385 GB, free: 72.65 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 6.4288113079965115]