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.0008614/0.0008614, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009251/0.0009251, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 8 kB / 307.1 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1162, allocations: 51.53 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1935/0.3097, allocations: 23.74 MB / 382.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03355/0.3433, allocations: 20.55 MB / 402.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003823/0.3472, allocations: 59.81 kB / 403 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00382/0.351, allocations: 1.278 MB / 404.3 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3611, allocations: 2.625 MB / 406.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005334/0.3665, allocations: 1.248 MB / 408.1 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02052/0.387, allocations: 11.99 MB / 420.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00206/0.3891, allocations: 0.7795 MB / 420.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003185/0.3923, allocations: 1.815 MB / 422.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002996/0.3953, allocations: 1.914 MB / 424.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004824/0.3958, allocations: 80 kB / 424.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004728/0.4006, allocations: 1.369 MB / 426.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000547/0.4011, allocations: 0.504 MB / 426.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.4027, allocations: 1.17 MB / 427.7 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004681/0.4074, allocations: 4.782 MB / 432.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4074, allocations: 0 / 432.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4075, allocations: 0 / 432.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.4076, allocations: 0 / 432.5 MB, free: 2.074 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.008365/0.4159, allocations: 5.874 MB / 438.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.416, allocations: 8.031 kB / 438.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009332/0.4169, allocations: 0.741 MB / 439.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006756/0.4237, allocations: 4.304 MB / 443.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.4238, allocations: 66 kB / 443.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.424, allocations: 99.89 kB / 443.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.4262, allocations: 1.313 MB / 444.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.4263, allocations: 0 / 444.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.4264, allocations: 39.98 kB / 445 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.854e-05/0.4264, allocations: 35.98 kB / 445 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002658/0.4291, allocations: 1.523 MB / 446.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009186/0.4383, allocations: 5.656 MB / 452.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.44, allocations: 1.028 MB / 453.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.4416, allocations: 1.247 MB / 454.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05473/0.4964, allocations: 61.11 MB / 0.5035 GB, free: 6.258 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009883/0.4974, allocations: 0.5715 MB / 0.504 GB, free: 5.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.775e-06/0.4974, allocations: 0 / 0.504 GB, free: 5.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003203/0.5006, allocations: 1.934 MB / 0.5059 GB, free: 3.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.5007, allocations: 71.92 kB / 0.506 GB, free: 3.645 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006382/0.5071, allocations: 5.512 MB / 0.5114 GB, free: 14.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.365e-05/0.5072, allocations: 41.69 kB / 0.5114 GB, free: 14.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/0.5097, allocations: 2.947 MB / 0.5143 GB, free: 11.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.5099, allocations: 303.8 kB / 0.5146 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/0.51, allocations: 28 kB / 0.5146 GB, free: 10.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.5102, allocations: 365.9 kB / 0.515 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000852/0.5111, allocations: 415.8 kB / 0.5154 GB, free: 10.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.5124, allocations: 1.106 MB / 0.5164 GB, free: 8.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.5134, allocations: 0.5686 MB / 0.517 GB, free: 8.051 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.5134, allocations: 8 kB / 0.517 GB, free: 8.043 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003348/0.5168, allocations: 2.237 MB / 0.5192 GB, free: 5.793 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.5168, allocations: 17 kB / 0.5192 GB, free: 5.777 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002168/0.517, allocations: 160 kB / 0.5194 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.224e-05/0.5171, allocations: 40 kB / 0.5194 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.5182, allocations: 373.6 kB / 0.5198 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.127e-05/0.5183, allocations: 55.73 kB / 0.5198 GB, free: 5.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.52, allocations: 202.1 kB / 0.52 GB, free: 4.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.5201, allocations: 120 kB / 0.5201 GB, free: 4.848 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00129/0.5214, allocations: 0.7193 MB / 0.5208 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006456/0.5221, allocations: 0.7101 MB / 0.5215 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005137/0.5272, allocations: 2.194 MB / 0.5237 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.5273, allocations: 8 kB / 0.5237 GB, free: 1.188 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5273, allocations: 0 / 0.5237 GB, free: 1.188 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5273, allocations: 7.938 kB / 0.5237 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1744/0.7017, allocations: 3.631 MB / 0.5272 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002132/0.7019, allocations: 137.8 kB / 0.5273 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007672/0.7027, allocations: 170.1 kB / 0.5275 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.7027, allocations: 6.562 kB / 0.5275 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.751e-05/0.7028, allocations: 60.64 kB / 0.5276 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.7028, allocations: 3.281 kB / 0.5276 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7028, allocations: 1.062 kB / 0.5276 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003399/0.7062, allocations: 2.209 MB / 0.5297 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.7075, allocations: 0.8129 MB / 0.5305 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005231/0.708, allocations: 21.83 kB / 0.5305 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.7091, allocations: 46.52 kB / 0.5306 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.7094, allocations: 100.1 kB / 0.5307 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.7095, allocations: 70.19 kB / 0.5308 GB, free: 147.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006226/0.7158, allocations: 3.535 MB / 0.5342 GB, free: 146.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7158, allocations: 1.406 kB / 0.5342 GB, free: 146.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002768/0.7186, allocations: 1.076 MB / 0.5353 GB, free: 146.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.7202, allocations: 1.117 MB / 0.5363 GB, free: 146.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.7227, allocations: 1.463 MB / 0.5378 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7227, allocations: 3.688 kB / 0.5378 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.7239, allocations: 0.7933 MB / 0.5386 GB, free: 145.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004418/0.7283, allocations: 1.147 MB / 0.5397 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009755/0.7381, allocations: 9.183 MB / 0.5486 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/0.7395, allocations: 2.598 MB / 0.5512 GB, free: 139 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002523/0.7421, allocations: 0.6859 MB / 0.5518 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/0.7424, allocations: 279.6 kB / 0.5521 GB, free: 138.8 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.7424, allocations: 0 / 0.5521 GB, free: 138.8 MB / 446.1 MB Notification: Performance of Templates: time 0.07266/0.8151, allocations: 51.84 MB / 0.6027 GB, free: 88.7 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