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.001071/0.001071, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.94 kB / 306.9 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09271/0.09393, allocations: 50.53 MB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1871/0.281, allocations: 26.72 MB / 384.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02756/0.3086, allocations: 22.37 MB / 406.5 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005157/0.3138, allocations: 55.97 kB / 406.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004925/0.3188, allocations: 1.768 MB / 408.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.3308, allocations: 3.222 MB / 411.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007314/0.3381, allocations: 1.624 MB / 413.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0203/0.3584, allocations: 12.78 MB / 426 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.36, allocations: 0.8716 MB / 426.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00308/0.3631, allocations: 2.018 MB / 428.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002661/0.3658, allocations: 2.103 MB / 431 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003819/0.3662, allocations: 140 kB / 431.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004729/0.3709, allocations: 1.541 MB / 432.7 MB, free: 184 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000772/0.3717, allocations: 0.6012 MB / 433.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003461/0.3752, allocations: 2.635 MB / 435.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008292/0.3835, allocations: 6.579 MB / 442.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3835, allocations: 0 / 442.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3835, allocations: 0 / 442.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.3836, allocations: 0 / 442.5 MB, free: 6.316 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.009555/0.3932, allocations: 6.694 MB / 449.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3933, allocations: 12.03 kB / 449.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008682/0.3941, allocations: 0.7448 MB / 449.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007084/0.4012, allocations: 4.632 MB / 454.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.4013, allocations: 66 kB / 454.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/0.4015, allocations: 99.89 kB / 454.7 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.4038, allocations: 1.301 MB / 456 MB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.4038, allocations: 11.92 kB / 456 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.4039, allocations: 32 kB / 456.1 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.4039, allocations: 35.98 kB / 456.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.4064, allocations: 1.48 MB / 457.6 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009333/0.4158, allocations: 5.643 MB / 463.2 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.4174, allocations: 0.9906 MB / 464.2 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.419, allocations: 1.216 MB / 465.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05498/0.474, allocations: 61.06 MB / 0.5142 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.4751, allocations: 0.556 MB / 0.5147 GB, free: 8.941 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.595e-06/0.4751, allocations: 0 / 0.5147 GB, free: 8.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003314/0.4784, allocations: 1.883 MB / 0.5165 GB, free: 7.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.4785, allocations: 67.89 kB / 0.5166 GB, free: 6.969 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006303/0.4848, allocations: 5.586 MB / 0.5221 GB, free: 1.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.86e-05/0.4849, allocations: 45.7 kB / 0.5221 GB, free: 1.359 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1486/0.6335, allocations: 2.934 MB / 0.525 GB, free: 150.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004196/0.634, allocations: 300.9 kB / 0.5253 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006043/0.6346, allocations: 420.9 kB / 0.5257 GB, free: 150.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.061e-05/0.6346, allocations: 302.2 kB / 0.5259 GB, free: 150.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008864/0.6355, allocations: 401.4 kB / 0.5263 GB, free: 150.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.6366, allocations: 1.091 MB / 0.5274 GB, free: 149.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/0.6387, allocations: 1.609 MB / 0.529 GB, free: 147.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.6388, allocations: 6.375 kB / 0.529 GB, free: 147.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003461/0.6422, allocations: 2.21 MB / 0.5311 GB, free: 147 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.043e-05/0.6423, allocations: 18.02 kB / 0.5311 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/0.6425, allocations: 162.2 kB / 0.5313 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.31e-05/0.6426, allocations: 37.12 kB / 0.5313 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.6437, allocations: 356 kB / 0.5317 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-05/0.6438, allocations: 50.58 kB / 0.5317 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.6454, allocations: 191.5 kB / 0.5319 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.6456, allocations: 129.4 kB / 0.532 GB, free: 146.8 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.00119/0.6468, allocations: 0.713 MB / 0.5327 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006762/0.6475, allocations: 0.718 MB / 0.5334 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004724/0.6522, allocations: 2.155 MB / 0.5355 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.6523, allocations: 7.75 kB / 0.5355 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.6523, allocations: 5.312 kB / 0.5355 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.6523, allocations: 3.891 kB / 0.5355 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.6575, allocations: 3.596 MB / 0.5391 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001869/0.6577, allocations: 138.2 kB / 0.5392 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007631/0.6585, allocations: 148 kB / 0.5393 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.6585, allocations: 6.469 kB / 0.5393 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.6586, allocations: 61.62 kB / 0.5394 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.6586, allocations: 7.797 kB / 0.5394 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6586, allocations: 5.125 kB / 0.5394 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.6617, allocations: 2.143 MB / 0.5415 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.663, allocations: 0.8274 MB / 0.5423 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005101/0.6635, allocations: 17.8 kB / 0.5423 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.6645, allocations: 37.89 kB / 0.5424 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.6648, allocations: 100.4 kB / 0.5425 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.6649, allocations: 70.64 kB / 0.5425 GB, free: 142.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004899/0.6698, allocations: 3.611 MB / 0.5461 GB, free: 140.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6698, allocations: 0 / 0.5461 GB, free: 140.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002194/0.672, allocations: 1.079 MB / 0.5471 GB, free: 140.8 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.001314/0.6734, allocations: 1.173 MB / 0.5483 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.6759, allocations: 1.46 MB / 0.5497 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6759, allocations: 0 / 0.5497 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009517/0.6768, allocations: 0.7757 MB / 0.5504 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004475/0.6813, allocations: 1.206 MB / 0.5516 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008674/0.69, allocations: 8.23 MB / 0.5596 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.6913, allocations: 2.588 MB / 0.5622 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002373/0.6937, allocations: 0.6846 MB / 0.5628 GB, free: 128.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.694, allocations: 287.4 kB / 0.5631 GB, free: 128.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.694, allocations: 0 / 0.5631 GB, free: 128.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07902/0.773, allocations: 55.31 MB / 0.6171 GB, free: 73.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/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