Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009161/0.0009161, allocations: 97.75 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.0002071, allocations: 4 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08792/0.08814, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1656/0.2538, allocations: 25.65 MB / 384.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02727/0.2811, allocations: 22.3 MB / 407.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004574/0.2858, allocations: 59.59 kB / 407.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00444/0.2902, allocations: 1.539 MB / 408.8 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.3021, allocations: 2.709 MB / 411.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005536/0.3076, allocations: 1.354 MB / 412.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01792/0.3256, allocations: 12.58 MB / 425.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001633/0.3272, allocations: 0.8142 MB / 426.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003451/0.3307, allocations: 1.97 MB / 428.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002782/0.3335, allocations: 2.029 MB / 430.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.3339, allocations: 76 kB / 430.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005362/0.3393, allocations: 1.506 MB / 431.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007454/0.34, allocations: 0.5385 MB / 432.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00327/0.3433, allocations: 2.59 MB / 435 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008104/0.3514, allocations: 6.343 MB / 441.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3515, allocations: 0 / 441.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3515, allocations: 0 / 441.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001476/0.3516, allocations: 0 / 441.3 MB, free: 9.441 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.008177/0.3598, allocations: 5.788 MB / 447.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3599, allocations: 8.031 kB / 447.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007811/0.3607, allocations: 0.741 MB / 447.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006426/0.3671, allocations: 4.636 MB / 452.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.514e-05/0.3672, allocations: 69.94 kB / 452.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/0.3674, allocations: 103.9 kB / 452.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.3697, allocations: 1.32 MB / 454 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3697, allocations: 0 / 454 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.3698, allocations: 36 kB / 454 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.3699, allocations: 43.95 kB / 454.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002597/0.3725, allocations: 1.531 MB / 455.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008807/0.3813, allocations: 5.651 MB / 461.2 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.3831, allocations: 1.028 MB / 462.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.3848, allocations: 1.243 MB / 463.5 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05497/0.4397, allocations: 61.11 MB / 0.5123 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.4408, allocations: 0.5755 MB / 0.5129 GB, free: 12.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.876e-06/0.4409, allocations: 0 / 0.5129 GB, free: 12.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003478/0.4443, allocations: 1.942 MB / 0.5148 GB, free: 10.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.4444, allocations: 63.91 kB / 0.5148 GB, free: 10.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006706/0.4511, allocations: 5.59 MB / 0.5203 GB, free: 5.172 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.4513, allocations: 41.7 kB / 0.5203 GB, free: 5.125 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/0.4537, allocations: 2.943 MB / 0.5232 GB, free: 2.168 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.4541, allocations: 303.8 kB / 0.5235 GB, free: 1.867 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.4543, allocations: 125.6 kB / 0.5236 GB, free: 1.738 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.321e-05/0.4544, allocations: 305.1 kB / 0.5239 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009265/0.4553, allocations: 423.8 kB / 0.5243 GB, free: 1.027 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1591/0.6145, allocations: 1.107 MB / 0.5254 GB, free: 147.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.6169, allocations: 1.652 MB / 0.527 GB, free: 146.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.508e-05/0.6169, allocations: 6.75 kB / 0.527 GB, free: 146.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003852/0.6208, allocations: 2.243 MB / 0.5292 GB, free: 146.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.6208, allocations: 16.62 kB / 0.5292 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001932/0.621, allocations: 162.7 kB / 0.5294 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.166e-05/0.6211, allocations: 40.88 kB / 0.5294 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.6223, allocations: 370 kB / 0.5298 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.273e-05/0.6223, allocations: 50.17 kB / 0.5298 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.624, allocations: 191.2 kB / 0.53 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001791/0.6242, allocations: 124.6 kB / 0.5301 GB, free: 146.5 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.6256, allocations: 0.7219 MB / 0.5308 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007775/0.6264, allocations: 0.7158 MB / 0.5315 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005299/0.6317, allocations: 2.197 MB / 0.5337 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.6317, allocations: 8.375 kB / 0.5337 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.6317, allocations: 0 / 0.5337 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.6317, allocations: 8.875 kB / 0.5337 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005754/0.6375, allocations: 3.645 MB / 0.5373 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001835/0.6377, allocations: 138.9 kB / 0.5374 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007993/0.6385, allocations: 167.2 kB / 0.5375 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.6385, allocations: 3.844 kB / 0.5375 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.269e-05/0.6386, allocations: 57.25 kB / 0.5376 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.6386, allocations: 7.031 kB / 0.5376 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6387, allocations: 2.188 kB / 0.5376 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00348/0.6421, allocations: 2.22 MB / 0.5398 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/0.6435, allocations: 0.8127 MB / 0.5406 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005319/0.644, allocations: 18.64 kB / 0.5406 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.6452, allocations: 46.23 kB / 0.5406 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.6454, allocations: 94.86 kB / 0.5407 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.6456, allocations: 73.92 kB / 0.5408 GB, free: 143.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005153/0.6507, allocations: 3.608 MB / 0.5443 GB, free: 142.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6507, allocations: 0 / 0.5443 GB, free: 142.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002229/0.653, allocations: 1.075 MB / 0.5454 GB, free: 142.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.001492/0.6545, allocations: 1.171 MB / 0.5465 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.6567, allocations: 1.474 MB / 0.548 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6567, allocations: 3.938 kB / 0.548 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009994/0.6577, allocations: 0.7893 MB / 0.5487 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005065/0.6628, allocations: 1.114 MB / 0.5498 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009083/0.6719, allocations: 9.869 MB / 0.5595 GB, free: 132.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.6733, allocations: 2.592 MB / 0.562 GB, free: 130.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002528/0.6758, allocations: 0.6846 MB / 0.5627 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.6762, allocations: 283.4 kB / 0.5629 GB, free: 129.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6762, allocations: 4 kB / 0.5629 GB, free: 129.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07861/0.7548, allocations: 53.48 MB / 0.6151 GB, free: 75.92 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches