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.000777/0.0007769, allocations: 94.69 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008903/0.0008903, allocations: 204.8 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.000239, allocations: 4 kB / 308.4 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09051, allocations: 51.53 MB / 359.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2079/0.2985, allocations: 25.66 MB / 385.6 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03062/0.3292, allocations: 22.3 MB / 407.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007002/0.3362, allocations: 60 kB / 407.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006177/0.3424, allocations: 1.53 MB / 409.4 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01549/0.358, allocations: 2.709 MB / 412.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007482/0.3655, allocations: 1.362 MB / 413.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02102/0.3866, allocations: 12.57 MB / 426.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001888/0.3885, allocations: 0.8103 MB / 426.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003772/0.3923, allocations: 1.974 MB / 428.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00359/0.3959, allocations: 2.037 MB / 430.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006788/0.3966, allocations: 76 kB / 431 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006415/0.4031, allocations: 1.498 MB / 432.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.4041, allocations: 0.5385 MB / 433 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003728/0.4079, allocations: 2.586 MB / 435.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006099/0.414, allocations: 4.802 MB / 440.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.414, allocations: 0 / 440.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.468e-06/0.414, allocations: 0 / 440.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002576/0.4143, allocations: 0 / 440.4 MB, free: 11.04 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.009014/0.4233, allocations: 5.788 MB / 446.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4234, allocations: 12.03 kB / 446.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.4246, allocations: 0.741 MB / 447 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007479/0.432, allocations: 4.632 MB / 451.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.237e-05/0.4322, allocations: 66 kB / 451.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003254/0.4325, allocations: 103.9 kB / 451.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.4349, allocations: 1.32 MB / 453.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.435, allocations: 0 / 453.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.4351, allocations: 39.98 kB / 453.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.631e-05/0.4351, allocations: 35.98 kB / 453.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002496/0.4376, allocations: 1.523 MB / 454.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.448, allocations: 5.655 MB / 460.3 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.4499, allocations: 1.028 MB / 461.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.4515, allocations: 1.237 MB / 462.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05558/0.5071, allocations: 61.12 MB / 0.5114 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/0.5083, allocations: 0.5794 MB / 0.512 GB, free: 14.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.807e-06/0.5083, allocations: 0 / 0.512 GB, free: 14.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003699/0.512, allocations: 1.942 MB / 0.5139 GB, free: 12.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.5121, allocations: 67.97 kB / 0.514 GB, free: 12.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00881/0.5209, allocations: 5.582 MB / 0.5194 GB, free: 6.773 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.5212, allocations: 41.69 kB / 0.5195 GB, free: 6.727 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002599/0.5238, allocations: 2.939 MB / 0.5223 GB, free: 3.773 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004608/0.5243, allocations: 311.7 kB / 0.5226 GB, free: 3.465 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.5246, allocations: 121.6 kB / 0.5227 GB, free: 3.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.5247, allocations: 309.1 kB / 0.523 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.5257, allocations: 419.8 kB / 0.5234 GB, free: 2.629 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.527, allocations: 1.118 MB / 0.5245 GB, free: 1.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1775/0.7045, allocations: 1.644 MB / 0.5261 GB, free: 146.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-05/0.7046, allocations: 6.938 kB / 0.5261 GB, free: 146.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004255/0.7088, allocations: 2.246 MB / 0.5283 GB, free: 146.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.481e-05/0.7089, allocations: 18.16 kB / 0.5283 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/0.7091, allocations: 161.2 kB / 0.5285 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.666e-05/0.7092, allocations: 37.38 kB / 0.5285 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.7104, allocations: 367.9 kB / 0.5289 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-05/0.7104, allocations: 50.3 kB / 0.5289 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/0.7124, allocations: 197.3 kB / 0.5291 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/0.7126, allocations: 124.2 kB / 0.5292 GB, free: 146.7 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.0017/0.7143, allocations: 0.7169 MB / 0.5299 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009909/0.7153, allocations: 0.7144 MB / 0.5306 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/0.7208, allocations: 2.201 MB / 0.5328 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.7209, allocations: 8.594 kB / 0.5328 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.7209, allocations: 3.75 kB / 0.5328 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.7209, allocations: 3.516 kB / 0.5328 GB, free: 146.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006565/0.7275, allocations: 3.642 MB / 0.5364 GB, free: 145.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000181/0.7277, allocations: 142.2 kB / 0.5365 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008144/0.7285, allocations: 166.1 kB / 0.5367 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.537e-06/0.7285, allocations: 4.438 kB / 0.5367 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.897e-05/0.7286, allocations: 59.95 kB / 0.5367 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.447e-06/0.7286, allocations: 8.125 kB / 0.5367 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.7287, allocations: 5.438 kB / 0.5367 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/0.7328, allocations: 2.215 MB / 0.5389 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/0.7345, allocations: 0.8085 MB / 0.5397 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007637/0.7353, allocations: 19 kB / 0.5397 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.7366, allocations: 49.69 kB / 0.5397 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.7369, allocations: 94.69 kB / 0.5398 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.737, allocations: 71.39 kB / 0.5399 GB, free: 143.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006477/0.7435, allocations: 3.606 MB / 0.5434 GB, free: 142.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7435, allocations: 0 / 0.5434 GB, free: 142.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002809/0.7463, allocations: 1.078 MB / 0.5445 GB, free: 142.7 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.001702/0.748, allocations: 1.173 MB / 0.5456 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.7506, allocations: 1.471 MB / 0.5471 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.7506, allocations: 3.5 kB / 0.5471 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.7517, allocations: 0.7974 MB / 0.5478 GB, free: 141.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006219/0.7579, allocations: 1.121 MB / 0.5489 GB, free: 141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.77, allocations: 9.956 MB / 0.5587 GB, free: 133.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001602/0.7716, allocations: 2.59 MB / 0.5612 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006442/0.7723, allocations: 291.4 kB / 0.5615 GB, free: 131 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7723, allocations: 3.609 kB / 0.5615 GB, free: 131 MB / 446.1 MB Notification: Performance of Templates: time 0.08455/0.8569, allocations: 69.59 MB / 0.6294 GB, free: 61.45 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/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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,time,v.p.v