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.001477/0.001477, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001511/0.001511, allocations: 194.2 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.444/1.444, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001696/0.001696, allocations: 55.91 kB / 370.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2326, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02443/0.257, allocations: 22.23 MB / 445.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03034/0.2874, allocations: 19.52 MB / 464.8 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005301/0.2927, allocations: 269.1 kB / 465.1 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005259/0.2979, allocations: 1.673 MB / 466.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.3095, allocations: 3.306 MB / 470.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005575/0.315, allocations: 1.605 MB / 471.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0198/0.3348, allocations: 12.75 MB / 484.4 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.336, allocations: 0.4964 MB / 484.9 MB, free: 332 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.3398, allocations: 2.197 MB / 487.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003252/0.343, allocations: 2.021 MB / 489.1 MB, free: 12.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005079/0.3435, allocations: 132 kB / 489.3 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.3479, allocations: 1.257 MB / 490.5 MB, free: 10.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008053/0.3487, allocations: 0.6048 MB / 491.1 MB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00305/0.3517, allocations: 1.929 MB / 493 MB, free: 8.145 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.3624, allocations: 6.734 MB / 499.8 MB, free: 1.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.689e-06/0.3624, allocations: 3.984 kB / 499.8 MB, free: 1.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3624, allocations: 0 / 499.8 MB, free: 1.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001871/0.3626, allocations: 0 / 499.8 MB, free: 1.375 MB / 398.1 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.01073/0.3733, allocations: 6.855 MB / 0.4948 GB, free: 10.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3733, allocations: 12.03 kB / 0.4948 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009786/0.3743, allocations: 0.7764 MB / 0.4955 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007578/0.3819, allocations: 4.375 MB / 0.4998 GB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/0.382, allocations: 66 kB / 0.4999 GB, free: 5.078 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.3822, allocations: 103.9 kB / 0.5 GB, free: 4.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.3846, allocations: 1.313 MB / 0.5012 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.3847, allocations: 0 / 0.5012 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.3848, allocations: 32 kB / 0.5013 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.821e-05/0.3848, allocations: 43.97 kB / 0.5013 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.3876, allocations: 1.488 MB / 0.5028 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009902/0.3975, allocations: 5.124 MB / 0.5078 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.3993, allocations: 0.8795 MB / 0.5086 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.4009, allocations: 1.063 MB / 0.5097 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2346/0.6355, allocations: 26.99 MB / 0.536 GB, free: 114.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/0.6367, allocations: 0.5523 MB / 0.5366 GB, free: 114.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.457e-06/0.6367, allocations: 0 / 0.5366 GB, free: 114.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003249/0.6399, allocations: 1.918 MB / 0.5384 GB, free: 113.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.6399, allocations: 64.75 kB / 0.5385 GB, free: 113.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005417/0.6454, allocations: 5.626 MB / 0.544 GB, free: 111.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.6455, allocations: 44.33 kB / 0.544 GB, free: 111.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/0.6471, allocations: 2.966 MB / 0.5469 GB, free: 109.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.6473, allocations: 313.5 kB / 0.5472 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003916/0.6477, allocations: 428.9 kB / 0.5476 GB, free: 109.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.024e-05/0.6477, allocations: 305.1 kB / 0.5479 GB, free: 108.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007452/0.6485, allocations: 408.1 kB / 0.5483 GB, free: 108.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008976/0.6494, allocations: 1.085 MB / 0.5494 GB, free: 107.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.6511, allocations: 1.609 MB / 0.551 GB, free: 105.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.6511, allocations: 8 kB / 0.551 GB, free: 105.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002748/0.6538, allocations: 2.242 MB / 0.5531 GB, free: 103.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.6539, allocations: 16 kB / 0.5532 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001611/0.654, allocations: 163.1 kB / 0.5533 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.2e-05/0.654, allocations: 39.56 kB / 0.5534 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.6551, allocations: 355.4 kB / 0.5537 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.641e-05/0.6551, allocations: 50.8 kB / 0.5537 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.6568, allocations: 190 kB / 0.5539 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.6569, allocations: 128 kB / 0.554 GB, free: 102.3 MB / 446.1 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.001036/0.658, allocations: 0.7043 MB / 0.5547 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004562/0.6584, allocations: 0.7567 MB / 0.5555 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003392/0.6618, allocations: 2.155 MB / 0.5576 GB, free: 98.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.6618, allocations: 8 kB / 0.5576 GB, free: 98.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6618, allocations: 0 / 0.5576 GB, free: 98.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.6618, allocations: 7.984 kB / 0.5576 GB, free: 98.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.6661, allocations: 3.362 MB / 0.5609 GB, free: 95.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001479/0.6663, allocations: 140 kB / 0.561 GB, free: 95.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007131/0.667, allocations: 151.8 kB / 0.5612 GB, free: 95.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.667, allocations: 4 kB / 0.5612 GB, free: 95.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-05/0.6671, allocations: 60 kB / 0.5612 GB, free: 95.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.6671, allocations: 8.062 kB / 0.5612 GB, free: 95.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6671, allocations: 0 / 0.5612 GB, free: 95.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.6699, allocations: 2.189 MB / 0.5634 GB, free: 92.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/0.6711, allocations: 0.7824 MB / 0.5641 GB, free: 92.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005193/0.6716, allocations: 20 kB / 0.5641 GB, free: 92.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.6728, allocations: 39.89 kB / 0.5642 GB, free: 92.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.6729, allocations: 96.56 kB / 0.5643 GB, free: 91.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.872e-05/0.673, allocations: 67.98 kB / 0.5643 GB, free: 91.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00358/0.6766, allocations: 3.608 MB / 0.5679 GB, free: 88.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6766, allocations: 4 kB / 0.5679 GB, free: 88.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001863/0.6785, allocations: 1.081 MB / 0.5689 GB, free: 87.18 MB / 446.1 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.001259/0.6797, allocations: 1.181 MB / 0.5701 GB, free: 86.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.6817, allocations: 1.364 MB / 0.5714 GB, free: 84.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6817, allocations: 0 / 0.5714 GB, free: 84.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008918/0.6826, allocations: 0.741 MB / 0.5721 GB, free: 83.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/0.6869, allocations: 1.18 MB / 0.5733 GB, free: 82.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008531/0.6954, allocations: 8.274 MB / 0.5814 GB, free: 74.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.6967, allocations: 2.098 MB / 0.5834 GB, free: 72.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001834/0.6985, allocations: 0.6885 MB / 0.5841 GB, free: 71.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.6988, allocations: 279.4 kB / 0.5844 GB, free: 71.28 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.6988, allocations: 0 / 0.5844 GB, free: 71.28 MB / 446.1 MB Notification: Performance of Templates: time 0.08231/0.7811, allocations: 65.53 MB / 0.6483 GB, free: 6.586 MB / 446.1 MB " [Timeout remaining time 659] 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: 6.640355564653873]