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.001337/0.001337, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001678/0.001678, allocations: 166.8 kB / 25.61 MB, free: 8.582 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.9243/0.9243, allocations: 177 MB / 205.9 MB, free: 4.465 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.172e-06/1.172e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.593e-05, allocations: 2.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01474/0.01475, allocations: 24.71 MB / 298.8 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02008/0.03484, allocations: 21.07 MB / 319.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002484/0.03732, allocations: 269.1 kB / 320.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002544/0.03986, allocations: 1.695 MB / 321.8 MB, free: 4.379 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005943/0.04581, allocations: 3.434 MB / 325.3 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002986/0.04879, allocations: 1.632 MB / 326.9 MB, free: 15.28 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01167/0.06046, allocations: 13.49 MB / 340.4 MB, free: 1.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.06148, allocations: 0.4924 MB / 340.9 MB, free: 1.223 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1237/0.1851, allocations: 5.957 MB / 346.9 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.1875, allocations: 1.564 MB / 348.4 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.1879, allocations: 135.3 kB / 348.5 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00283/0.1908, allocations: 1.262 MB / 349.8 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003497/0.1911, allocations: 0.6158 MB / 350.4 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.1923, allocations: 1.418 MB / 351.8 MB, free: 28.74 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003386/0.1956, allocations: 4.661 MB / 356.5 MB, free: 28.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1957, allocations: 0 / 356.5 MB, free: 28.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1957, allocations: 0 / 356.5 MB, free: 28.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.721e-05/0.1957, allocations: 0 / 356.5 MB, free: 28.11 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.004293/0.2, allocations: 7.246 MB / 363.8 MB, free: 24.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.2, allocations: 9.75 kB / 363.8 MB, free: 24.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004943/0.2005, allocations: 0.8479 MB / 364.6 MB, free: 23.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.2036, allocations: 4.812 MB / 369.4 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.2036, allocations: 69.97 kB / 369.5 MB, free: 22.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.2038, allocations: 101.3 kB / 369.6 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007878/0.2045, allocations: 0.8329 MB / 370.4 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.2046, allocations: 0 / 370.4 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/0.2046, allocations: 38.88 kB / 370.5 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.2047, allocations: 44.31 kB / 370.5 MB, free: 22.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007363/0.2054, allocations: 0.8119 MB / 371.3 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.2094, allocations: 4.291 MB / 375.6 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.2098, allocations: 0.5106 MB / 376.1 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004675/0.2103, allocations: 0.72 MB / 376.8 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.2359, allocations: 29.97 MB / 406.8 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/0.2363, allocations: 422.1 kB / 407.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.375e-06/0.2363, allocations: 0 / 407.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001311/0.2376, allocations: 1.485 MB / 408.7 MB, free: 3.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.2377, allocations: 68.05 kB / 408.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/0.2413, allocations: 5.94 MB / 414.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/0.2414, allocations: 45.69 kB / 414.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00178/0.2432, allocations: 3.267 MB / 418 MB, free: 11.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.2434, allocations: 321.1 kB / 418.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00038/0.2438, allocations: 435.8 kB / 418.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.2439, allocations: 476.8 kB / 419.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.2441, allocations: 196.5 kB / 419.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.2447, allocations: 1.205 MB / 420.6 MB, free: 8.734 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.2458, allocations: 1.547 MB / 422.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.2458, allocations: 8 kB / 422.2 MB, free: 6.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001605/0.2474, allocations: 1.907 MB / 424.1 MB, free: 5.109 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.2474, allocations: 16.22 kB / 424.1 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/0.2475, allocations: 171.5 kB / 424.3 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.2476, allocations: 32 kB / 424.3 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006225/0.2482, allocations: 357.8 kB / 424.6 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.413e-05/0.2482, allocations: 49.67 kB / 424.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009157/0.2491, allocations: 182.7 kB / 424.9 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.2492, allocations: 110.4 kB / 425 MB, free: 4.25 MB / 346.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.0004921/0.2497, allocations: 271.5 kB / 425.2 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004618/0.2502, allocations: 0.7687 MB / 426 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.2524, allocations: 1.869 MB / 427.9 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.2524, allocations: 8 kB / 427.9 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.2524, allocations: 0 / 427.9 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.2524, allocations: 7.922 kB / 427.9 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.2557, allocations: 3.784 MB / 431.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000117/0.2559, allocations: 140 kB / 431.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.2562, allocations: 139.5 kB / 432 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.2562, allocations: 4 kB / 432 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.858e-05/0.2563, allocations: 60 kB / 432 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.2563, allocations: 7.938 kB / 432 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.2563, allocations: 7.625 kB / 432 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.2577, allocations: 1.751 MB / 433.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007665/0.2584, allocations: 0.8171 MB / 434.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/0.2587, allocations: 15.98 kB / 434.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005859/0.2593, allocations: 27.92 kB / 434.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.2595, allocations: 102.8 kB / 434.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.2595, allocations: 64 kB / 434.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002137/0.2617, allocations: 3.02 MB / 437.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2617, allocations: 0 / 437.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00146/0.2631, allocations: 1.089 MB / 438.9 MB, free: 7.414 MB / 362.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.001371/0.2645, allocations: 1.431 MB / 440.3 MB, free: 6.211 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009341/0.2654, allocations: 1.084 MB / 441.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2654, allocations: 0 / 441.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004511/0.2659, allocations: 0.601 MB / 442 MB, free: 4.527 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.2684, allocations: 1.237 MB / 443.3 MB, free: 3.297 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006315/0.2747, allocations: 7.766 MB / 451 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.2752, allocations: 0.6894 MB / 451.7 MB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001087/0.2763, allocations: 0.6846 MB / 452.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.2777, allocations: 1.298 MB / 453.7 MB, free: 8.762 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2777, allocations: 0 / 453.7 MB, free: 8.762 MB / 378.7 MB Notification: Performance of Templates: time 0.1782/0.4559, allocations: 66.68 MB / 0.5082 GB, free: 107.9 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.39150734199211]