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.001567/0.001567, allocations: 104 kB / 17.59 MB, free: 5.559 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.001768/0.001768, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.351/1.351, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 52.2 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09238, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1933/0.2857, allocations: 26.71 MB / 377.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02859/0.3144, allocations: 22.34 MB / 399.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005936/0.3203, allocations: 60 kB / 399.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006084/0.3265, allocations: 1.774 MB / 401.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01457/0.3411, allocations: 3.217 MB / 404.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007193/0.3484, allocations: 1.615 MB / 406.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02108/0.3695, allocations: 12.64 MB / 419.1 MB, free: 356 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001919/0.3714, allocations: 0.8596 MB / 419.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00419/0.3757, allocations: 2.022 MB / 422 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003801/0.3795, allocations: 2.096 MB / 424.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007773/0.3803, allocations: 140 kB / 424.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006544/0.3869, allocations: 1.541 MB / 425.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009178/0.3878, allocations: 0.5971 MB / 426.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004602/0.3924, allocations: 2.635 MB / 429 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.4032, allocations: 6.575 MB / 435.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.4033, allocations: 4 kB / 435.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4033, allocations: 0 / 435.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002117/0.4035, allocations: 0 / 435.5 MB, free: 15.77 MB / 350.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.01072/0.4142, allocations: 6.69 MB / 442.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.4143, allocations: 8.031 kB / 442.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.4154, allocations: 0.7448 MB / 443 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/0.4226, allocations: 4.627 MB / 447.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.803e-05/0.4227, allocations: 66 kB / 447.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002525/0.4229, allocations: 115.7 kB / 447.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.4252, allocations: 1.301 MB / 449.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.4252, allocations: 3.938 kB / 449.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.4254, allocations: 36 kB / 449.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.909e-05/0.4254, allocations: 35.98 kB / 449.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/0.428, allocations: 1.484 MB / 450.6 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.4385, allocations: 5.636 MB / 456.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.4403, allocations: 0.9812 MB / 457.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/0.442, allocations: 1.223 MB / 458.5 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05669/0.4987, allocations: 59.81 MB / 0.5061 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.4999, allocations: 0.552 MB / 0.5067 GB, free: 3.945 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 4.118e-06/0.4999, allocations: 0 / 0.5067 GB, free: 3.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003913/0.5038, allocations: 1.871 MB / 0.5085 GB, free: 2.066 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.5039, allocations: 67.94 kB / 0.5086 GB, free: 1.984 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009804/0.5137, allocations: 5.59 MB / 0.514 GB, free: 12.42 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002819/0.514, allocations: 41.7 kB / 0.5141 GB, free: 12.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00281/0.5169, allocations: 2.947 MB / 0.517 GB, free: 9.414 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005208/0.5174, allocations: 291.9 kB / 0.5172 GB, free: 9.125 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006267/0.518, allocations: 422.5 kB / 0.5176 GB, free: 8.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.5181, allocations: 305.1 kB / 0.5179 GB, free: 8.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00089/0.519, allocations: 404.6 kB / 0.5183 GB, free: 8.012 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.5204, allocations: 1.087 MB / 0.5194 GB, free: 6.598 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.5226, allocations: 1.611 MB / 0.5209 GB, free: 4.652 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.5227, allocations: 8 kB / 0.521 GB, free: 4.645 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004163/0.5268, allocations: 2.211 MB / 0.5231 GB, free: 2.422 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.5269, allocations: 12 kB / 0.5231 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/0.5271, allocations: 160 kB / 0.5233 GB, free: 2.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.1e-05/0.5271, allocations: 40 kB / 0.5233 GB, free: 2.215 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.5283, allocations: 363.3 kB / 0.5237 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.324e-05/0.5284, allocations: 51.78 kB / 0.5237 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.5303, allocations: 186.2 kB / 0.5239 GB, free: 1.629 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.5305, allocations: 128 kB / 0.524 GB, free: 1.504 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.001364/0.5319, allocations: 0.7082 MB / 0.5247 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/0.5329, allocations: 0.714 MB / 0.5254 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1958/0.7288, allocations: 2.149 MB / 0.5275 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.7288, allocations: 12.97 kB / 0.5275 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.7288, allocations: 0 / 0.5275 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.7288, allocations: 7.031 kB / 0.5275 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007395/0.7362, allocations: 3.603 MB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002085/0.7365, allocations: 137.8 kB / 0.5312 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.7373, allocations: 152 kB / 0.5313 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.7373, allocations: 3.688 kB / 0.5313 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.7375, allocations: 61.25 kB / 0.5314 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.05e-05/0.7375, allocations: 8.406 kB / 0.5314 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7375, allocations: 0 / 0.5314 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003916/0.7414, allocations: 2.149 MB / 0.5335 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.7431, allocations: 0.822 MB / 0.5343 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007163/0.7438, allocations: 13.47 kB / 0.5343 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.745, allocations: 33.31 kB / 0.5343 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/0.7452, allocations: 102 kB / 0.5344 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/0.7454, allocations: 78.64 kB / 0.5345 GB, free: 152.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006683/0.7521, allocations: 3.605 MB / 0.538 GB, free: 151.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7521, allocations: 0 / 0.538 GB, free: 151.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002816/0.7549, allocations: 1.08 MB / 0.5391 GB, free: 151.5 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.001472/0.7564, allocations: 1.176 MB / 0.5402 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002771/0.7592, allocations: 1.458 MB / 0.5417 GB, free: 150.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.7592, allocations: 256 / 0.5417 GB, free: 150.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.7603, allocations: 0.7752 MB / 0.5424 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005611/0.7659, allocations: 1.204 MB / 0.5436 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.7771, allocations: 8.328 MB / 0.5517 GB, free: 145.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/0.7789, allocations: 2.596 MB / 0.5543 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006048/0.7795, allocations: 296.8 kB / 0.5545 GB, free: 144.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.753e-06/0.7795, allocations: 0 / 0.5545 GB, free: 144.4 MB / 446.1 MB Notification: Performance of Templates: time 0.08284/0.8624, allocations: 70.11 MB / 0.623 GB, free: 74.73 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