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.001523/0.001523, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.00162/0.00162, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.503/1.503, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.493e-06/1.493e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.964e-05/3.113e-05, allocations: 6.25 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1403/0.1403, allocations: 22.25 MB / 294.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.1639, allocations: 19.56 MB / 314 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005447/0.1693, allocations: 267.6 kB / 314.3 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004801/0.1741, allocations: 1.686 MB / 315.9 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01211/0.1862, allocations: 3.432 MB / 319.4 MB, free: 15.67 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006768/0.193, allocations: 1.638 MB / 321 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02231/0.2153, allocations: 13.25 MB / 334.3 MB, free: 2.582 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.2169, allocations: 0.4892 MB / 334.8 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006147/0.2231, allocations: 2.984 MB / 337.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003402/0.2265, allocations: 1.498 MB / 339.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000452/0.2269, allocations: 136 kB / 339.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00462/0.2315, allocations: 1.272 MB / 340.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007436/0.2323, allocations: 0.6087 MB / 341.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003123/0.2354, allocations: 1.402 MB / 342.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.2461, allocations: 6.503 MB / 349.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2461, allocations: 0 / 349.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2461, allocations: 0 / 349.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001523/0.2463, allocations: 0 / 349.2 MB, free: 3.609 MB / 298.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.01127/0.2575, allocations: 6.786 MB / 355.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2576, allocations: 11.98 kB / 356 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.2589, allocations: 0.8467 MB / 356.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008816/0.2678, allocations: 4.965 MB / 361.8 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.982e-05/0.2678, allocations: 66 kB / 361.8 MB, free: 6.727 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002996/0.2681, allocations: 111.9 kB / 361.9 MB, free: 6.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002725/0.2709, allocations: 1.301 MB / 363.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.2709, allocations: 0 / 363.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.271, allocations: 43.92 kB / 363.3 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-05/0.2711, allocations: 35.98 kB / 363.3 MB, free: 5.223 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.2741, allocations: 1.492 MB / 364.8 MB, free: 3.727 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.2856, allocations: 5.146 MB / 370 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.2876, allocations: 0.8717 MB / 370.8 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.2895, allocations: 1.061 MB / 371.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0572/0.3467, allocations: 30.08 MB / 402 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.3479, allocations: 0.5567 MB / 402.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 3.477e-06/0.3479, allocations: 0 / 402.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.004187/0.3521, allocations: 1.938 MB / 404.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.3521, allocations: 60.06 kB / 404.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008274/0.3604, allocations: 5.629 MB / 410.2 MB, free: 5.562 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.3605, allocations: 41.7 kB / 410.2 MB, free: 5.516 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003286/0.3638, allocations: 2.953 MB / 413.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.3643, allocations: 317.4 kB / 413.5 MB, free: 2.238 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006246/0.3649, allocations: 411 kB / 413.9 MB, free: 1.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3651, allocations: 309.1 kB / 414.2 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009806/0.366, allocations: 403.8 kB / 414.6 MB, free: 1.133 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.3677, allocations: 1.093 MB / 415.6 MB, free: 15.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002754/0.3704, allocations: 1.611 MB / 417.3 MB, free: 13.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.3704, allocations: 8 kB / 417.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004428/0.3748, allocations: 2.311 MB / 419.6 MB, free: 11.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.3749, allocations: 12 kB / 419.6 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000237/0.3751, allocations: 164 kB / 419.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.978e-05/0.3752, allocations: 36.78 kB / 419.8 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.3765, allocations: 359.4 kB / 420.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.947e-05/0.3765, allocations: 43.86 kB / 420.2 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.3783, allocations: 198.6 kB / 420.4 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.3786, allocations: 120 kB / 420.5 MB, free: 10.52 MB / 378.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.00147/0.38, allocations: 0.716 MB / 421.2 MB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001058/0.3811, allocations: 0.7687 MB / 422 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005056/0.3861, allocations: 2.16 MB / 424.1 MB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3862, allocations: 8 kB / 424.1 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3862, allocations: 7.938 kB / 424.1 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.3862, allocations: 3.984 kB / 424.2 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006303/0.3925, allocations: 3.36 MB / 427.5 MB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002093/0.3927, allocations: 140 kB / 427.6 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008138/0.3935, allocations: 144.7 kB / 427.8 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3935, allocations: 7.922 kB / 427.8 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.3936, allocations: 64.06 kB / 427.9 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.3936, allocations: 4 kB / 427.9 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3936, allocations: 3.938 kB / 427.9 MB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004188/0.3978, allocations: 2.205 MB / 430.1 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/0.3995, allocations: 0.8211 MB / 430.9 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005596/0.4, allocations: 13.19 kB / 430.9 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1143/0.5143, allocations: 32.03 kB / 430.9 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003735/0.5147, allocations: 102.3 kB / 431 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/0.5148, allocations: 70.14 kB / 431.1 MB, free: 126.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006126/0.521, allocations: 3.61 MB / 434.7 MB, free: 125.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.521, allocations: 0.9062 kB / 434.7 MB, free: 125.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002624/0.5236, allocations: 1.084 MB / 435.8 MB, free: 125.9 MB / 378.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.001863/0.5255, allocations: 1.291 MB / 437.1 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.5278, allocations: 1.365 MB / 438.5 MB, free: 125.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5278, allocations: 1.375 kB / 438.5 MB, free: 125.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.5288, allocations: 0.7403 MB / 439.2 MB, free: 124.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/0.5337, allocations: 1.226 MB / 440.4 MB, free: 124.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00861/0.5423, allocations: 8.32 MB / 448.7 MB, free: 120.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.5436, allocations: 2.107 MB / 450.9 MB, free: 119.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001875/0.5455, allocations: 0.6814 MB / 451.5 MB, free: 118.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003317/0.5458, allocations: 288.5 kB / 451.8 MB, free: 118.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5458, allocations: 0 / 451.8 MB, free: 118.6 MB / 378.7 MB Notification: Performance of Templates: time 0.07469/0.6205, allocations: 57.62 MB / 0.4975 GB, free: 62.17 MB / 378.7 MB " [Timeout remaining time 659] 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: 6.5279108020477]