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.001371/0.001371, allocations: 80.8 kB / 22.28 MB, free: 2.203 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.001269/0.001269, allocations: 171.2 kB / 25.69 MB, free: 8.453 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.9257/0.9257, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.543e-06/1.543e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.781e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01924/0.01927, allocations: 23.41 MB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0229/0.04217, allocations: 20.61 MB / 295.6 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004849/0.04702, allocations: 281 kB / 295.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004248/0.05127, allocations: 1.703 MB / 297.6 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009316/0.06059, allocations: 3.352 MB / 300.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004013/0.0646, allocations: 1.536 MB / 302.5 MB, free: 4.094 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.07743, allocations: 12.97 MB / 315.4 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.07856, allocations: 0.5494 MB / 316 MB, free: 6.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005323/0.08388, allocations: 5.53 MB / 321.5 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0024/0.08628, allocations: 1.507 MB / 323 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003362/0.08662, allocations: 132 kB / 323.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003287/0.08991, allocations: 1.198 MB / 324.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004657/0.09037, allocations: 0.6165 MB / 325 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001905/0.09228, allocations: 1.429 MB / 326.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006064/0.09834, allocations: 4.68 MB / 331.1 MB, free: 7.344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.09835, allocations: 0 / 331.1 MB, free: 7.344 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09835, allocations: 0 / 331.1 MB, free: 7.344 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001014/0.09845, allocations: 0 / 331.1 MB, free: 7.344 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.00672/0.1052, allocations: 6.813 MB / 337.9 MB, free: 464 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1052, allocations: 11.98 kB / 337.9 MB, free: 452 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006667/0.1059, allocations: 0.5383 MB / 338.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.1107, allocations: 3.948 MB / 342.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.1108, allocations: 66 kB / 342.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.111, allocations: 99.91 kB / 342.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.1121, allocations: 0.7852 MB / 343.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.1121, allocations: 0 / 343.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.304e-05/0.1122, allocations: 36 kB / 343.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.843e-05/0.1122, allocations: 39.97 kB / 343.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008765/0.1131, allocations: 427.1 kB / 343.8 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/0.1188, allocations: 2.901 MB / 346.7 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006209/0.1194, allocations: 481.4 kB / 347.2 MB, free: 6.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006602/0.1201, allocations: 0.6302 MB / 347.8 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1517/0.2718, allocations: 45.71 MB / 393.5 MB, free: 42.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003261/0.2721, allocations: 339.3 kB / 393.9 MB, free: 42.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.796e-06/0.2721, allocations: 0 / 393.9 MB, free: 42.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.0009124/0.273, allocations: 0.8542 MB / 394.7 MB, free: 41.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.2731, allocations: 60.06 kB / 394.8 MB, free: 41.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00314/0.2762, allocations: 5.101 MB / 399.9 MB, free: 37.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/0.2764, allocations: 41.7 kB / 399.9 MB, free: 37.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006281/0.277, allocations: 1.398 MB / 401.3 MB, free: 36.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.2772, allocations: 313.8 kB / 401.6 MB, free: 36.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.2775, allocations: 341.6 kB / 402 MB, free: 36.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.941e-05/0.2775, allocations: 305.1 kB / 402.3 MB, free: 36.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2777, allocations: 131.9 kB / 402.4 MB, free: 35.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.278, allocations: 0.8483 MB / 403.2 MB, free: 34.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.2786, allocations: 1.166 MB / 404.4 MB, free: 33.51 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.2787, allocations: 8 kB / 404.4 MB, free: 33.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001223/0.2799, allocations: 1.291 MB / 405.7 MB, free: 32.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.2799, allocations: 16 kB / 405.7 MB, free: 32.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/0.28, allocations: 40 kB / 405.7 MB, free: 32.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.263e-05/0.28, allocations: 35.19 kB / 405.8 MB, free: 32.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/0.2807, allocations: 397.3 kB / 406.2 MB, free: 31.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.2808, allocations: 49.58 kB / 406.2 MB, free: 31.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000934/0.2817, allocations: 183.3 kB / 406.4 MB, free: 31.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.2818, allocations: 75.06 kB / 406.5 MB, free: 31.68 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.0004462/0.2822, allocations: 224.1 kB / 406.7 MB, free: 31.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.2827, allocations: 471.4 kB / 407.1 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.2845, allocations: 1.493 MB / 408.6 MB, free: 29.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.2845, allocations: 8 kB / 408.7 MB, free: 29.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2845, allocations: 0 / 408.7 MB, free: 29.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2845, allocations: 3.984 kB / 408.7 MB, free: 29.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.2867, allocations: 2.786 MB / 411.4 MB, free: 27.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.581e-05/0.2868, allocations: 20 kB / 411.5 MB, free: 27.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/0.2872, allocations: 171.2 kB / 411.6 MB, free: 27.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2872, allocations: 4 kB / 411.6 MB, free: 27.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.2873, allocations: 20 kB / 411.7 MB, free: 27.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2873, allocations: 4 kB / 411.7 MB, free: 27.31 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2873, allocations: 5.812 kB / 411.7 MB, free: 27.31 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007944/0.2881, allocations: 1.063 MB / 412.7 MB, free: 26.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005282/0.2886, allocations: 0.743 MB / 413.5 MB, free: 25.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.2889, allocations: 15.98 kB / 413.5 MB, free: 25.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.2894, allocations: 23.98 kB / 413.5 MB, free: 25.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.2895, allocations: 64.48 kB / 413.6 MB, free: 25.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.816e-05/0.2896, allocations: 24 kB / 413.6 MB, free: 25.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001245/0.2908, allocations: 2.747 MB / 416.3 MB, free: 23.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2908, allocations: 0 / 416.3 MB, free: 23.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001482/0.2923, allocations: 1.094 MB / 417.4 MB, free: 21.98 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.001172/0.2935, allocations: 1.46 MB / 418.9 MB, free: 20.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007507/0.2942, allocations: 0.8449 MB / 419.7 MB, free: 20.01 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.987e-05/0.2943, allocations: 83.81 kB / 419.8 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.2946, allocations: 437.4 kB / 420.2 MB, free: 19.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.2966, allocations: 0.9996 MB / 421.2 MB, free: 18.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005525/0.3021, allocations: 7.615 MB / 428.9 MB, free: 10.81 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.3025, allocations: 0.698 MB / 429.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001178/0.3036, allocations: 0.685 MB / 430.2 MB, free: 9.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/0.305, allocations: 1.077 MB / 431.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of SimCode: time 2.103e-06/0.305, allocations: 4 kB / 431.3 MB, free: 8.309 MB / 330.7 MB Notification: Performance of Templates: time 0.07943/0.3844, allocations: 66.58 MB / 497.9 MB, free: 5.781 MB / 394.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 -s gbode -gbm=radauIIA3 -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.220445951912552]