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.001051/0.001051, allocations: 110.8 kB / 17.74 MB, free: 5.336 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.001018/0.001018, allocations: 184.5 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3174, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0249/0.3424, allocations: 26.71 MB / 428.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03109/0.3735, allocations: 22.34 MB / 450.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004953/0.3785, allocations: 182.5 kB / 450.6 MB, free: 7.434 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005137/0.3837, allocations: 1.759 MB / 452.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01211/0.3958, allocations: 3.223 MB / 455.6 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005999/0.4019, allocations: 1.619 MB / 457.2 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02181/0.4237, allocations: 12.68 MB / 469.9 MB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002054/0.4258, allocations: 0.8592 MB / 470.8 MB, free: 3.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003348/0.4292, allocations: 2.107 MB / 472.9 MB, free: 1.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003333/0.4325, allocations: 2.107 MB / 475 MB, free: 14.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007093/0.4333, allocations: 132 kB / 475.1 MB, free: 14.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005546/0.4388, allocations: 1.537 MB / 476.6 MB, free: 13.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009073/0.4398, allocations: 0.601 MB / 477.3 MB, free: 12.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004512/0.4443, allocations: 2.62 MB / 479.9 MB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.455, allocations: 6.634 MB / 486.5 MB, free: 3.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.455, allocations: 0 / 486.5 MB, free: 3.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.455, allocations: 0 / 486.5 MB, free: 3.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002668/0.4553, allocations: 0 / 486.5 MB, free: 3.367 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.01105/0.4663, allocations: 6.666 MB / 493.2 MB, free: 12.6 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4664, allocations: 8.031 kB / 493.2 MB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009868/0.4674, allocations: 0.7448 MB / 493.9 MB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007021/0.4744, allocations: 4.586 MB / 498.5 MB, free: 7.164 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.4745, allocations: 70 kB / 498.6 MB, free: 7.094 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.4748, allocations: 99.84 kB / 498.7 MB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.4771, allocations: 1.305 MB / 500 MB, free: 5.676 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.4772, allocations: 3.984 kB / 500 MB, free: 5.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.4773, allocations: 39.94 kB / 0.4883 GB, free: 5.633 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.803e-05/0.4773, allocations: 39.97 kB / 0.4883 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002493/0.4798, allocations: 1.484 MB / 0.4898 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009492/0.4894, allocations: 5.609 MB / 0.4953 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.4912, allocations: 0.9889 MB / 0.4962 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.4928, allocations: 1.22 MB / 0.4974 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2688/0.7616, allocations: 59.8 MB / 0.5558 GB, free: 118.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009285/0.7626, allocations: 0.5612 MB / 0.5564 GB, free: 117.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.845e-06/0.7626, allocations: 0 / 0.5564 GB, free: 117.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003072/0.7657, allocations: 1.883 MB / 0.5582 GB, free: 117.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.7657, allocations: 59.47 kB / 0.5583 GB, free: 117.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005677/0.7714, allocations: 5.587 MB / 0.5637 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.7716, allocations: 45.69 kB / 0.5638 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.7733, allocations: 2.942 MB / 0.5666 GB, free: 110.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/0.7736, allocations: 295.5 kB / 0.5669 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004164/0.7741, allocations: 418.5 kB / 0.5673 GB, free: 110.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.444e-05/0.7741, allocations: 303.2 kB / 0.5676 GB, free: 109.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007446/0.7749, allocations: 404.8 kB / 0.568 GB, free: 109.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009372/0.7758, allocations: 1.098 MB / 0.5691 GB, free: 108.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.7776, allocations: 1.609 MB / 0.5706 GB, free: 106.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.7776, allocations: 4 kB / 0.5706 GB, free: 106.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003116/0.7807, allocations: 2.206 MB / 0.5728 GB, free: 104.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.7808, allocations: 19.94 kB / 0.5728 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.7809, allocations: 166 kB / 0.573 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.381e-05/0.781, allocations: 32 kB / 0.573 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.782, allocations: 359.5 kB / 0.5733 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.9e-05/0.7821, allocations: 51.8 kB / 0.5734 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/0.7839, allocations: 193.6 kB / 0.5736 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.7841, allocations: 123.3 kB / 0.5737 GB, free: 103.2 MB / 462.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.001434/0.7856, allocations: 0.7082 MB / 0.5744 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007419/0.7863, allocations: 0.714 MB / 0.5751 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.7903, allocations: 2.159 MB / 0.5772 GB, free: 99.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7903, allocations: 8 kB / 0.5772 GB, free: 99.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.7903, allocations: 0 / 0.5772 GB, free: 99.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.7903, allocations: 7.984 kB / 0.5772 GB, free: 99.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005416/0.7957, allocations: 3.593 MB / 0.5807 GB, free: 95.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001567/0.7959, allocations: 148 kB / 0.5809 GB, free: 95.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007264/0.7967, allocations: 147.8 kB / 0.581 GB, free: 95.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.7967, allocations: 4 kB / 0.581 GB, free: 95.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.679e-05/0.7968, allocations: 63.98 kB / 0.5811 GB, free: 95.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.7968, allocations: 4 kB / 0.5811 GB, free: 95.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7968, allocations: 1.438 kB / 0.5811 GB, free: 95.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003009/0.7998, allocations: 2.161 MB / 0.5832 GB, free: 93.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.8012, allocations: 0.82 MB / 0.584 GB, free: 92.58 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006802/0.8019, allocations: 19.98 kB / 0.584 GB, free: 92.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.803, allocations: 31.97 kB / 0.584 GB, free: 92.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.8032, allocations: 96.48 kB / 0.5841 GB, free: 92.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.8033, allocations: 68 kB / 0.5842 GB, free: 92.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004152/0.8075, allocations: 3.604 MB / 0.5877 GB, free: 88.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8075, allocations: 0 / 0.5877 GB, free: 88.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002158/0.8097, allocations: 1.08 MB / 0.5888 GB, free: 87.75 MB / 462.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.001391/0.8111, allocations: 1.178 MB / 0.5899 GB, free: 86.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002057/0.8132, allocations: 1.424 MB / 0.5913 GB, free: 85.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.8132, allocations: 8 kB / 0.5913 GB, free: 85.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009313/0.8141, allocations: 0.7706 MB / 0.5921 GB, free: 84.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/0.8192, allocations: 1.181 MB / 0.5932 GB, free: 83.15 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/0.8288, allocations: 8.188 MB / 0.6012 GB, free: 74.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/0.8302, allocations: 2.592 MB / 0.6037 GB, free: 72.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/0.8309, allocations: 291.4 kB / 0.604 GB, free: 72.02 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8309, allocations: 0 / 0.604 GB, free: 72.02 MB / 462.1 MB Notification: Performance of Templates: time 0.08231/0.9132, allocations: 70.6 MB / 0.673 GB, free: 1.738 MB / 462.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