Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001281/0.001281, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001455/0.001455, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 47.92 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2532, allocations: 53.36 MB / 432.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02669/0.2799, allocations: 26.82 MB / 459.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03105/0.3109, allocations: 22.44 MB / 481.7 MB, free: 5.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006044/0.3169, allocations: 269.1 kB / 481.9 MB, free: 5.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005983/0.3229, allocations: 1.786 MB / 483.7 MB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01253/0.3355, allocations: 3.329 MB / 487 MB, free: 24 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006237/0.3417, allocations: 1.644 MB / 488.7 MB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02203/0.3637, allocations: 12.9 MB / 0.4898 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.365, allocations: 0.5121 MB / 0.4903 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003512/0.3685, allocations: 2.189 MB / 0.4925 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003897/0.3724, allocations: 2.103 MB / 0.4945 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005116/0.3729, allocations: 136 kB / 0.4946 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004949/0.3779, allocations: 1.533 MB / 0.4961 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.3789, allocations: 0.601 MB / 0.4967 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004202/0.3831, allocations: 2.62 MB / 0.4993 GB, free: 7.664 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.3947, allocations: 6.675 MB / 0.5058 GB, free: 0.957 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3947, allocations: 4 kB / 0.5058 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3947, allocations: 0 / 0.5058 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.3949, allocations: 0 / 0.5058 GB, free: 0.9531 MB / 414.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.01115/0.406, allocations: 6.855 MB / 0.5125 GB, free: 10.01 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.4061, allocations: 16.03 kB / 0.5125 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.4074, allocations: 0.7764 MB / 0.5133 GB, free: 9.215 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0092/0.4166, allocations: 4.367 MB / 0.5175 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.582e-05/0.4167, allocations: 66 kB / 0.5176 GB, free: 4.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.417, allocations: 99.91 kB / 0.5177 GB, free: 4.562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/0.4195, allocations: 1.313 MB / 0.519 GB, free: 3.234 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.4195, allocations: 4 kB / 0.519 GB, free: 3.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.4197, allocations: 39.94 kB / 0.519 GB, free: 3.191 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.069e-05/0.4197, allocations: 39.97 kB / 0.5191 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.4225, allocations: 1.488 MB / 0.5205 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.4338, allocations: 5.564 MB / 0.5259 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.4355, allocations: 0.8757 MB / 0.5268 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.4372, allocations: 1.063 MB / 0.5278 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2458/0.683, allocations: 27.16 MB / 0.5544 GB, free: 95.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008518/0.6838, allocations: 0.56 MB / 0.5549 GB, free: 95.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.755e-06/0.6838, allocations: 4.594 kB / 0.5549 GB, free: 95.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002582/0.6864, allocations: 1.905 MB / 0.5568 GB, free: 93.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.6864, allocations: 67.97 kB / 0.5568 GB, free: 93.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004741/0.6912, allocations: 5.588 MB / 0.5623 GB, free: 88.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.541e-05/0.6913, allocations: 37.7 kB / 0.5623 GB, free: 88.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.6929, allocations: 2.972 MB / 0.5652 GB, free: 85.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.6931, allocations: 307.4 kB / 0.5655 GB, free: 85.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003891/0.6935, allocations: 434.9 kB / 0.5659 GB, free: 84.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.6935, allocations: 301.1 kB / 0.5662 GB, free: 84.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000701/0.6942, allocations: 403.8 kB / 0.5666 GB, free: 84.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.6951, allocations: 1.087 MB / 0.5677 GB, free: 82.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.6967, allocations: 1.611 MB / 0.5692 GB, free: 80.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.6967, allocations: 11.94 kB / 0.5693 GB, free: 80.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002953/0.6997, allocations: 2.249 MB / 0.5715 GB, free: 78.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.6997, allocations: 12 kB / 0.5715 GB, free: 78.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.6999, allocations: 163.5 kB / 0.5716 GB, free: 78.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.719e-05/0.6999, allocations: 32 kB / 0.5717 GB, free: 78.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009956/0.7009, allocations: 359 kB / 0.572 GB, free: 77.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.88e-05/0.701, allocations: 51.78 kB / 0.572 GB, free: 77.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.7026, allocations: 191.8 kB / 0.5722 GB, free: 77.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.7027, allocations: 120 kB / 0.5723 GB, free: 77.62 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.001033/0.7038, allocations: 0.7175 MB / 0.573 GB, free: 76.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005318/0.7043, allocations: 0.753 MB / 0.5738 GB, free: 76.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.7078, allocations: 2.155 MB / 0.5759 GB, free: 74.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.7078, allocations: 13.64 kB / 0.5759 GB, free: 74.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.7078, allocations: 0 / 0.5759 GB, free: 74.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.7078, allocations: 3.984 kB / 0.5759 GB, free: 74.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004451/0.7123, allocations: 3.582 MB / 0.5794 GB, free: 70.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001447/0.7124, allocations: 140 kB / 0.5795 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.7131, allocations: 151.9 kB / 0.5797 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.7131, allocations: 4 kB / 0.5797 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.105e-05/0.7131, allocations: 63.98 kB / 0.5797 GB, free: 70.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.7132, allocations: 0 / 0.5797 GB, free: 70.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7132, allocations: 7.938 kB / 0.5798 GB, free: 70.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.7157, allocations: 2.186 MB / 0.5819 GB, free: 67.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.717, allocations: 0.7756 MB / 0.5826 GB, free: 67.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005353/0.7176, allocations: 23.98 kB / 0.5827 GB, free: 67.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7186, allocations: 35.97 kB / 0.5827 GB, free: 66.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.7188, allocations: 96.55 kB / 0.5828 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-05/0.7189, allocations: 68 kB / 0.5829 GB, free: 66.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003413/0.7223, allocations: 3.604 MB / 0.5864 GB, free: 63.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7223, allocations: 0 / 0.5864 GB, free: 63.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001821/0.7241, allocations: 1.086 MB / 0.5874 GB, free: 62.22 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.001217/0.7253, allocations: 1.186 MB / 0.5886 GB, free: 61.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.7271, allocations: 1.37 MB / 0.5899 GB, free: 59.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.7271, allocations: 0 / 0.5899 GB, free: 59.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008203/0.7279, allocations: 0.7367 MB / 0.5907 GB, free: 58.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00357/0.7315, allocations: 1.172 MB / 0.5918 GB, free: 57.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/0.7396, allocations: 8.361 MB / 0.6 GB, free: 49.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.7408, allocations: 2.595 MB / 0.6025 GB, free: 46.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004002/0.7412, allocations: 295.4 kB / 0.6028 GB, free: 46.41 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.7412, allocations: 0 / 0.6028 GB, free: 46.41 MB / 446.1 MB Notification: Performance of Templates: time 0.08534/0.8266, allocations: 70.88 MB / 0.672 GB, free: 7.836 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.804738933918998]