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.001037/0.001037, allocations: 84 kB / 21.43 MB, free: 3.121 MB / 18.57 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.005303/0.005303, allocations: 147.8 kB / 24.68 MB, free: 9.438 MB / 18.57 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 0.8279/0.8279, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.263e-06/1.263e-06, allocations: 0 / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.642e-05/1.768e-05, allocations: 3.688 kB / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01372/0.01374, allocations: 22.22 MB / 341.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01818/0.03192, allocations: 19.53 MB / 361.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.03412, allocations: 269.1 kB / 361.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.03657, allocations: 1.691 MB / 363.4 MB, free: 9.938 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005744/0.04231, allocations: 3.426 MB / 366.8 MB, free: 6.484 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.04514, allocations: 1.624 MB / 368.4 MB, free: 4.852 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.05566, allocations: 13.08 MB / 381.5 MB, free: 7.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008149/0.05648, allocations: 0.4926 MB / 382 MB, free: 7.199 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/0.05893, allocations: 2.988 MB / 385 MB, free: 4.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.06022, allocations: 1.498 MB / 386.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.06039, allocations: 132 kB / 386.6 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.06271, allocations: 1.264 MB / 387.9 MB, free: 1.305 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002845/0.06299, allocations: 0.6048 MB / 388.5 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009465/0.06394, allocations: 1.41 MB / 389.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004294/0.06823, allocations: 6.503 MB / 396.4 MB, free: 8.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.06824, allocations: 0 / 396.4 MB, free: 8.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.06824, allocations: 0 / 396.4 MB, free: 8.754 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.26e-05/0.06831, allocations: 4 kB / 396.4 MB, free: 8.75 MB / 362.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.005024/0.07334, allocations: 6.773 MB / 403.2 MB, free: 1.898 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.07338, allocations: 12.92 kB / 403.2 MB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.07385, allocations: 0.7764 MB / 404 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003885/0.07773, allocations: 4.371 MB / 408.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.07777, allocations: 70 kB / 408.4 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.0779, allocations: 103.9 kB / 408.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.07921, allocations: 1.305 MB / 409.8 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.07923, allocations: 0 / 409.8 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.197e-05/0.07931, allocations: 43.73 kB / 409.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.07933, allocations: 35.98 kB / 409.9 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.0808, allocations: 1.488 MB / 411.4 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/0.08592, allocations: 5.109 MB / 416.5 MB, free: 4.387 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009511/0.08687, allocations: 0.8913 MB / 417.4 MB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009139/0.08778, allocations: 1.064 MB / 418.5 MB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02786/0.1156, allocations: 26.99 MB / 445.5 MB, free: 6.672 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006439/0.1163, allocations: 0.5528 MB / 446 MB, free: 6.113 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 2.925e-06/0.1163, allocations: 0 / 446 MB, free: 6.113 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.001991/0.1183, allocations: 1.907 MB / 447.9 MB, free: 4.195 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.1183, allocations: 72.05 kB / 448 MB, free: 4.113 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1447/0.263, allocations: 5.62 MB / 453.6 MB, free: 122.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002252/0.2632, allocations: 40.23 kB / 453.6 MB, free: 122.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.2645, allocations: 2.962 MB / 456.6 MB, free: 120.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.2647, allocations: 308.8 kB / 456.9 MB, free: 120.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003242/0.2651, allocations: 415.2 kB / 457.3 MB, free: 120.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.229e-05/0.2651, allocations: 304.9 kB / 457.6 MB, free: 120.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005269/0.2656, allocations: 403.5 kB / 458 MB, free: 120.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.2663, allocations: 1.093 MB / 459.1 MB, free: 119.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.2674, allocations: 1.612 MB / 460.7 MB, free: 118 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.2674, allocations: 6.938 kB / 460.7 MB, free: 118 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001782/0.2692, allocations: 2.24 MB / 463 MB, free: 117.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.2692, allocations: 14.12 kB / 463 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-05/0.2693, allocations: 163.6 kB / 463.1 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.255e-05/0.2694, allocations: 31.81 kB / 463.2 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.2699, allocations: 366 kB / 463.5 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.27, allocations: 52.44 kB / 463.6 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008727/0.2708, allocations: 195.8 kB / 463.8 MB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.625e-05/0.2709, allocations: 123.1 kB / 463.9 MB, free: 116.9 MB / 410.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.0007482/0.2717, allocations: 0.7099 MB / 464.6 MB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/0.2719, allocations: 0.7464 MB / 465.3 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.2741, allocations: 2.148 MB / 467.5 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2741, allocations: 8 kB / 467.5 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2741, allocations: 3.375 kB / 467.5 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2741, allocations: 7.984 kB / 467.5 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.2767, allocations: 3.357 MB / 470.9 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.235e-05/0.2768, allocations: 136 kB / 471 MB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.2772, allocations: 155.8 kB / 471.1 MB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.2772, allocations: 7.938 kB / 471.2 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.2772, allocations: 59.98 kB / 471.2 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2772, allocations: 4 kB / 471.2 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2772, allocations: 0 / 471.2 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.2788, allocations: 2.192 MB / 473.4 MB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006362/0.2795, allocations: 0.7817 MB / 474.2 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002519/0.2797, allocations: 16 kB / 474.2 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005645/0.2803, allocations: 35.97 kB / 474.2 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.2804, allocations: 100.5 kB / 474.3 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.177e-05/0.2805, allocations: 68.86 kB / 474.4 MB, free: 107.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002305/0.2828, allocations: 3.612 MB / 478 MB, free: 103.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2828, allocations: 0 / 478 MB, free: 103.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001258/0.284, allocations: 1.083 MB / 479.1 MB, free: 102.8 MB / 410.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.0009394/0.285, allocations: 1.271 MB / 480.4 MB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.2861, allocations: 1.366 MB / 481.7 MB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2861, allocations: 0 / 481.7 MB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005089/0.2866, allocations: 0.7397 MB / 482.5 MB, free: 99.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/0.2889, allocations: 1.179 MB / 483.7 MB, free: 98.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/0.2945, allocations: 8.232 MB / 491.9 MB, free: 90.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000851/0.2954, allocations: 2.098 MB / 494 MB, free: 87.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002345/0.2956, allocations: 292.5 kB / 494.3 MB, free: 87.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.213e-06/0.2956, allocations: 0 / 494.3 MB, free: 87.69 MB / 410.7 MB Notification: Performance of Templates: time 0.05828/0.3539, allocations: 73.64 MB / 0.5546 GB, free: 14.36 MB / 410.7 MB " [Timeout remaining time 660] 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: 9.539319376461208]