Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.001522/0.001522, allocations: 85.95 kB / 23 MB, free: 1.504 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.001993/0.001993, allocations: 175.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.993/0.993, allocations: 158.6 MB / 188.3 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.323e-05, allocations: 2.312 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01444/0.01446, allocations: 23.36 MB / 275.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.03437, allocations: 20.05 MB / 295.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004218/0.03859, allocations: 273 kB / 295.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004046/0.04263, allocations: 1.644 MB / 297.6 MB, free: 9.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009716/0.05235, allocations: 3.39 MB / 301 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003952/0.0563, allocations: 1.581 MB / 302.5 MB, free: 4.746 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01365/0.06995, allocations: 13.06 MB / 315.6 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.07112, allocations: 0.4888 MB / 316.1 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005883/0.077, allocations: 5.545 MB / 321.6 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.07908, allocations: 1.507 MB / 323.1 MB, free: 56 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003154/0.0794, allocations: 132 kB / 323.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002712/0.08211, allocations: 1.148 MB / 324.4 MB, free: 14.78 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004033/0.08252, allocations: 0.6165 MB / 325 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001823/0.08434, allocations: 1.433 MB / 326.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00554/0.08988, allocations: 4.683 MB / 331.1 MB, free: 8.016 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.08988, allocations: 0 / 331.1 MB, free: 8.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.08988, allocations: 3.984 kB / 331.2 MB, free: 8.012 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001276/0.09001, allocations: 0 / 331.2 MB, free: 8.012 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.00616/0.09617, allocations: 7.291 MB / 338.4 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.09622, allocations: 11.98 kB / 338.5 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008135/0.09703, allocations: 0.8584 MB / 339.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004953/0.102, allocations: 4.855 MB / 344.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.102, allocations: 66 kB / 344.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.1022, allocations: 99.94 kB / 344.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.1032, allocations: 0.8368 MB / 345.2 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.1033, allocations: 4 kB / 345.2 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.1033, allocations: 32 kB / 345.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.1034, allocations: 43.97 kB / 345.2 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008658/0.1042, allocations: 0.8075 MB / 346.1 MB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005618/0.1099, allocations: 4.321 MB / 350.4 MB, free: 4.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.1104, allocations: 0.5128 MB / 350.9 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005837/0.111, allocations: 0.7228 MB / 351.6 MB, free: 3.234 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1392/0.2502, allocations: 30.02 MB / 381.6 MB, free: 72.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003788/0.2506, allocations: 426.2 kB / 382 MB, free: 72.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.835e-06/0.2506, allocations: 0 / 382 MB, free: 72.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001306/0.2519, allocations: 1.49 MB / 383.5 MB, free: 71.31 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.2519, allocations: 60.06 kB / 383.6 MB, free: 71.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.2552, allocations: 5.99 MB / 389.6 MB, free: 66.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.952e-05/0.2553, allocations: 41.7 kB / 389.6 MB, free: 66.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.2566, allocations: 3.288 MB / 392.9 MB, free: 63.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.2568, allocations: 314 kB / 393.2 MB, free: 63.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002613/0.2571, allocations: 437.5 kB / 393.6 MB, free: 62.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.2571, allocations: 487.8 kB / 394.1 MB, free: 62.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.2573, allocations: 191.9 kB / 394.3 MB, free: 62.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004003/0.2577, allocations: 1.198 MB / 395.5 MB, free: 60.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.2585, allocations: 1.551 MB / 397.1 MB, free: 58.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.2585, allocations: 8 kB / 397.1 MB, free: 58.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001715/0.2603, allocations: 1.919 MB / 399 MB, free: 56.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.2603, allocations: 16 kB / 399 MB, free: 56.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.2604, allocations: 163.5 kB / 399.2 MB, free: 56.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.2604, allocations: 39.98 kB / 399.2 MB, free: 56.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006138/0.261, allocations: 349.4 kB / 399.5 MB, free: 56.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.109e-05/0.2611, allocations: 53.16 kB / 399.6 MB, free: 56.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.2624, allocations: 183.5 kB / 399.8 MB, free: 56.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/0.2625, allocations: 108.8 kB / 399.9 MB, free: 56.11 MB / 330.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.0006108/0.2631, allocations: 266.7 kB / 400.1 MB, free: 55.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004891/0.2636, allocations: 0.7881 MB / 400.9 MB, free: 55.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.2656, allocations: 1.878 MB / 402.8 MB, free: 53.31 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.2656, allocations: 8 kB / 402.8 MB, free: 53.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2656, allocations: 1.531 kB / 402.8 MB, free: 53.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.2656, allocations: 3.984 kB / 402.8 MB, free: 53.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003364/0.269, allocations: 3.813 MB / 406.6 MB, free: 50.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001066/0.2691, allocations: 145 kB / 406.8 MB, free: 50.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.2695, allocations: 142.5 kB / 406.9 MB, free: 49.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2695, allocations: 4 kB / 406.9 MB, free: 49.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/0.2695, allocations: 59.98 kB / 407 MB, free: 49.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.2696, allocations: 4 kB / 407 MB, free: 49.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2696, allocations: 0 / 407 MB, free: 49.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.2709, allocations: 1.773 MB / 408.8 MB, free: 48.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008301/0.2717, allocations: 0.8153 MB / 409.6 MB, free: 47.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003325/0.2721, allocations: 19.31 kB / 409.6 MB, free: 47.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005985/0.2727, allocations: 23.97 kB / 409.6 MB, free: 47.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2728, allocations: 100.6 kB / 409.7 MB, free: 47.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-05/0.2729, allocations: 63.98 kB / 409.8 MB, free: 47.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001789/0.2746, allocations: 3.038 MB / 412.8 MB, free: 44.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2746, allocations: 0 / 412.8 MB, free: 44.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001527/0.2762, allocations: 1.097 MB / 413.9 MB, free: 43.38 MB / 330.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.001299/0.2775, allocations: 1.434 MB / 415.3 MB, free: 42.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009613/0.2784, allocations: 1.093 MB / 416.4 MB, free: 41.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2784, allocations: 0 / 416.4 MB, free: 41.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.2788, allocations: 0.6087 MB / 417 MB, free: 40.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.2808, allocations: 1.041 MB / 418.1 MB, free: 39.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006169/0.287, allocations: 7.819 MB / 425.9 MB, free: 31.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.2874, allocations: 0.694 MB / 426.6 MB, free: 30.92 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001214/0.2886, allocations: 0.6888 MB / 427.3 MB, free: 30.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/0.29, allocations: 1.31 MB / 428.6 MB, free: 28.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.29, allocations: 0 / 428.6 MB, free: 28.92 MB / 330.7 MB Notification: Performance of Templates: time 0.1929/0.483, allocations: 67 MB / 495.6 MB, free: 110.1 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.633600319735706]