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.001054/0.001054, allocations: 98.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 206.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003352/0.0003353, allocations: 4 kB / 306.6 MB, free: 1.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09089/0.09125, allocations: 51.49 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1743/0.2656, allocations: 21.38 MB / 379.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.2889, allocations: 19.68 MB / 399.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00499/0.294, allocations: 58.75 kB / 399.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004482/0.2985, allocations: 1.315 MB / 400.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.3101, allocations: 3.014 MB / 403.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005479/0.3156, allocations: 1.317 MB / 404.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02058/0.3362, allocations: 12.09 MB / 416.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.3376, allocations: 0.7833 MB / 417.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00314/0.3408, allocations: 1.808 MB / 419.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.3431, allocations: 1.922 MB / 421.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.3433, allocations: 76 kB / 421.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004341/0.3477, allocations: 1.468 MB / 423 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004875/0.3482, allocations: 0.5038 MB / 423.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.3494, allocations: 1.17 MB / 424.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00428/0.3536, allocations: 4.625 MB / 429.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.3537, allocations: 0 / 429.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3537, allocations: 0 / 429.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.819e-05/0.3538, allocations: 0 / 429.3 MB, free: 5.16 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.008124/0.3619, allocations: 5.835 MB / 435.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3619, allocations: 12.03 kB / 435.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007998/0.3627, allocations: 0.741 MB / 435.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006858/0.3696, allocations: 4.281 MB / 440.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.3697, allocations: 66 kB / 440.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.3699, allocations: 103.9 kB / 440.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.372, allocations: 1.305 MB / 441.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.372, allocations: 3.938 kB / 441.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.3721, allocations: 39.98 kB / 441.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.3722, allocations: 35.98 kB / 441.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002405/0.3746, allocations: 1.523 MB / 443.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008863/0.3835, allocations: 5.624 MB / 448.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.3852, allocations: 1.029 MB / 449.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0583/0.4435, allocations: 61.37 MB / 0.4993 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009913/0.4445, allocations: 0.5677 MB / 0.4998 GB, free: 9.844 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.407e-06/0.4445, allocations: 0 / 0.4998 GB, free: 9.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.00367/0.4482, allocations: 2.583 MB / 0.5023 GB, free: 7.102 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.4483, allocations: 59.97 kB / 0.5024 GB, free: 7.031 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006828/0.4551, allocations: 5.519 MB / 0.5078 GB, free: 1.539 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.4553, allocations: 41.69 kB / 0.5078 GB, free: 1.492 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002503/0.4578, allocations: 2.947 MB / 0.5107 GB, free: 14.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/0.4581, allocations: 299.8 kB / 0.511 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.4582, allocations: 32 kB / 0.511 GB, free: 14.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4584, allocations: 361.9 kB / 0.5114 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008743/0.4593, allocations: 419.8 kB / 0.5118 GB, free: 13.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.4608, allocations: 1.099 MB / 0.5128 GB, free: 12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.4619, allocations: 0.5647 MB / 0.5134 GB, free: 11.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4619, allocations: 8 kB / 0.5134 GB, free: 11.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003618/0.4655, allocations: 2.234 MB / 0.5156 GB, free: 9.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.4656, allocations: 16 kB / 0.5156 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/0.4658, allocations: 160.9 kB / 0.5157 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.839e-05/0.4658, allocations: 36 kB / 0.5158 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.467, allocations: 372 kB / 0.5161 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.934e-05/0.4671, allocations: 51.8 kB / 0.5162 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4688, allocations: 202.2 kB / 0.5164 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/0.469, allocations: 120 kB / 0.5165 GB, free: 8.242 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.00135/0.4703, allocations: 0.7094 MB / 0.5172 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000701/0.4711, allocations: 0.714 MB / 0.5179 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005113/0.4762, allocations: 2.24 MB / 0.5201 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.4762, allocations: 9.062 kB / 0.5201 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4762, allocations: 0 / 0.5201 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.4762, allocations: 7.938 kB / 0.5201 GB, free: 4.535 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005324/0.4816, allocations: 3.627 MB / 0.5236 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001763/0.4818, allocations: 140 kB / 0.5238 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000766/0.4825, allocations: 167.8 kB / 0.5239 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.4825, allocations: 3.953 kB / 0.5239 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.06e-05/0.4826, allocations: 64.81 kB / 0.524 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.4827, allocations: 8 kB / 0.524 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4827, allocations: 3.984 kB / 0.524 GB, free: 468 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1559/0.6386, allocations: 2.298 MB / 0.5262 GB, free: 148.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/0.6401, allocations: 0.8022 MB / 0.527 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005637/0.6406, allocations: 19.45 kB / 0.527 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.6417, allocations: 44.27 kB / 0.5271 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.6419, allocations: 99.22 kB / 0.5272 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.6421, allocations: 68.67 kB / 0.5272 GB, free: 148.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00492/0.647, allocations: 3.539 MB / 0.5307 GB, free: 147.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.647, allocations: 2.938 kB / 0.5307 GB, free: 147.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002221/0.6492, allocations: 1.077 MB / 0.5318 GB, free: 147.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.001392/0.6506, allocations: 1.097 MB / 0.5328 GB, free: 147.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.6529, allocations: 1.468 MB / 0.5343 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.653, allocations: 0 / 0.5343 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.654, allocations: 0.7866 MB / 0.535 GB, free: 146.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00508/0.6591, allocations: 1.125 MB / 0.5361 GB, free: 146 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.6718, allocations: 9.181 MB / 0.5451 GB, free: 141 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001702/0.6736, allocations: 2.706 MB / 0.5477 GB, free: 140.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002511/0.6761, allocations: 0.6913 MB / 0.5484 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.6765, allocations: 279.2 kB / 0.5487 GB, free: 139.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6765, allocations: 0 / 0.5487 GB, free: 139.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06872/0.7452, allocations: 50.48 MB / 0.598 GB, free: 93.46 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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches