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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 110.3 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00261/0.00261, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.196/2.196, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 47.39 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1645, allocations: 49.44 MB / 350 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.3543/0.5188, allocations: 26.41 MB / 376.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.04546/0.5644, allocations: 22.57 MB / 399 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01004/0.5745, allocations: 59.59 kB / 399.1 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01002/0.5846, allocations: 1.508 MB / 400.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02345/0.6081, allocations: 2.713 MB / 403.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01126/0.6195, allocations: 1.358 MB / 404.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03378/0.6533, allocations: 12.43 MB / 417.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002509/0.6559, allocations: 0.8151 MB / 417.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005591/0.6616, allocations: 2.002 MB / 419.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0055/0.6671, allocations: 2.068 MB / 422 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.6682, allocations: 92 kB / 422.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009385/0.6776, allocations: 1.49 MB / 423.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001671/0.6793, allocations: 0.558 MB / 424.1 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006966/0.6863, allocations: 2.588 MB / 426.7 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.6969, allocations: 4.885 MB / 431.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.921e-05/0.697, allocations: 7.984 kB / 431.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.6971, allocations: 4 kB / 431.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003218/0.6974, allocations: 0 / 431.6 MB, free: 3.488 MB / 334.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.01955/0.7169, allocations: 6.686 MB / 438.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.279e-05/0.717, allocations: 8.031 kB / 438.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001922/0.719, allocations: 0.7448 MB / 439 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01404/0.733, allocations: 4.636 MB / 443.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.7332, allocations: 66 kB / 443.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005093/0.7338, allocations: 99.81 kB / 443.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003554/0.7373, allocations: 1.301 MB / 445.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.7374, allocations: 0 / 445.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001782/0.7376, allocations: 36 kB / 445.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.191e-05/0.7377, allocations: 43.97 kB / 445.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.7417, allocations: 1.484 MB / 446.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.7596, allocations: 5.636 MB / 452.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/0.7625, allocations: 0.9851 MB / 453.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0026/0.7651, allocations: 1.223 MB / 454.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08985/0.855, allocations: 59.81 MB / 0.5023 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001873/0.8569, allocations: 0.5598 MB / 0.5028 GB, free: 7.664 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 5.711e-06/0.857, allocations: 7.875 kB / 0.5028 GB, free: 7.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.005688/0.8627, allocations: 1.875 MB / 0.5047 GB, free: 5.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.8628, allocations: 63.95 kB / 0.5047 GB, free: 5.695 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01293/0.8757, allocations: 5.586 MB / 0.5102 GB, free: 140 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003665/0.8762, allocations: 45.69 kB / 0.5102 GB, free: 88 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003729/0.8799, allocations: 2.943 MB / 0.5131 GB, free: 13.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.8806, allocations: 291.9 kB / 0.5134 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008349/0.8814, allocations: 418.5 kB / 0.5138 GB, free: 12.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.8816, allocations: 313.1 kB / 0.5141 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.8831, allocations: 399.8 kB / 0.5145 GB, free: 11.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002214/0.8854, allocations: 1.091 MB / 0.5155 GB, free: 10.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003573/0.889, allocations: 1.615 MB / 0.5171 GB, free: 8.355 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/0.889, allocations: 8 kB / 0.5171 GB, free: 8.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01008/0.8991, allocations: 2.199 MB / 0.5193 GB, free: 6.137 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.874e-05/0.8992, allocations: 16 kB / 0.5193 GB, free: 6.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003614/0.8996, allocations: 164 kB / 0.5194 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.98e-05/0.8997, allocations: 35.94 kB / 0.5195 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.9015, allocations: 363.6 kB / 0.5198 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.148e-05/0.9016, allocations: 47.8 kB / 0.5199 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/0.9049, allocations: 194.1 kB / 0.52 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.9052, allocations: 120 kB / 0.5202 GB, free: 5.215 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.006617/0.9119, allocations: 0.7043 MB / 0.5208 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001877/0.9138, allocations: 0.714 MB / 0.5215 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/0.9261, allocations: 2.166 MB / 0.5237 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-05/0.9262, allocations: 8 kB / 0.5237 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.9262, allocations: 0 / 0.5237 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.08e-05/0.9262, allocations: 3.984 kB / 0.5237 GB, free: 1.594 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3019/1.228, allocations: 3.594 MB / 0.5272 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003636/1.229, allocations: 140.4 kB / 0.5273 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/1.23, allocations: 152.3 kB / 0.5275 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.507e-05/1.23, allocations: 5.656 kB / 0.5275 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/1.23, allocations: 60.16 kB / 0.5275 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.25e-05/1.23, allocations: 4.594 kB / 0.5275 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.23, allocations: 3.438 kB / 0.5275 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006386/1.237, allocations: 2.156 MB / 0.5296 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003725/1.241, allocations: 0.8222 MB / 0.5304 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003076/1.244, allocations: 12.88 kB / 0.5305 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003092/1.247, allocations: 33.66 kB / 0.5305 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004428/1.247, allocations: 97.92 kB / 0.5306 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/1.248, allocations: 67.25 kB / 0.5306 GB, free: 153.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.013/1.261, allocations: 3.609 MB / 0.5342 GB, free: 152.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.423e-06/1.261, allocations: 3.469 kB / 0.5342 GB, free: 152.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006484/1.267, allocations: 1.077 MB / 0.5352 GB, free: 152.1 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.003727/1.271, allocations: 1.182 MB / 0.5364 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005104/1.276, allocations: 1.43 MB / 0.5378 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/1.276, allocations: 1 kB / 0.5378 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/1.278, allocations: 0.7682 MB / 0.5385 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01212/1.29, allocations: 1.129 MB / 0.5396 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02597/1.316, allocations: 9.849 MB / 0.5492 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/1.32, allocations: 2.597 MB / 0.5518 GB, free: 144.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009766/1.321, allocations: 291.7 kB / 0.5521 GB, free: 144.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/1.321, allocations: 0 / 0.5521 GB, free: 144.1 MB / 446.1 MB Notification: Performance of Templates: time 0.1659/1.487, allocations: 70.11 MB / 0.6205 GB, free: 76.64 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches