Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 105.5 kB / 18.4 MB, free: 4.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002009/0.002009, allocations: 191 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 47.94 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.0952, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2143/0.3096, allocations: 25.35 MB / 401.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03075/0.3404, allocations: 21.33 MB / 422.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008757/0.3492, allocations: 180.3 kB / 422.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006526/0.3558, allocations: 1.724 MB / 424.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01428/0.3701, allocations: 3.167 MB / 427.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006578/0.3767, allocations: 1.569 MB / 429.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02165/0.3984, allocations: 12.39 MB / 441.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.4005, allocations: 0.8679 MB / 442.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00415/0.4047, allocations: 1.913 MB / 444.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004036/0.4088, allocations: 2.061 MB / 446.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006624/0.4094, allocations: 132 kB / 446.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006477/0.4159, allocations: 1.218 MB / 447.7 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009885/0.417, allocations: 0.601 MB / 448.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004481/0.4214, allocations: 2.639 MB / 450.9 MB, free: 4.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.434, allocations: 6.677 MB / 457.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.434, allocations: 4 kB / 457.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4341, allocations: 3.938 kB / 457.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002578/0.4343, allocations: 0 / 457.6 MB, free: 13.54 MB / 382.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.01237/0.4467, allocations: 6.717 MB / 464.4 MB, free: 6.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.4468, allocations: 19.91 kB / 464.4 MB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.4479, allocations: 0.7487 MB / 465.1 MB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007158/0.4551, allocations: 4.618 MB / 469.7 MB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.844e-05/0.4552, allocations: 66 kB / 469.8 MB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.4554, allocations: 103.8 kB / 469.9 MB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.4577, allocations: 1.305 MB / 471.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.4577, allocations: 0 / 471.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.4579, allocations: 36 kB / 471.2 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.498e-05/0.4579, allocations: 39.92 kB / 471.3 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00244/0.4603, allocations: 1.486 MB / 472.8 MB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.4707, allocations: 5.641 MB / 478.4 MB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.4725, allocations: 0.989 MB / 479.4 MB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.4741, allocations: 1.22 MB / 480.6 MB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05556/0.5297, allocations: 59.93 MB / 0.5279 GB, free: 2.109 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.5308, allocations: 0.5599 MB / 0.5284 GB, free: 1.543 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.657e-06/0.5308, allocations: 0 / 0.5284 GB, free: 1.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003722/0.5345, allocations: 1.883 MB / 0.5303 GB, free: 15.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.5346, allocations: 63.97 kB / 0.5303 GB, free: 15.57 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007278/0.5419, allocations: 5.628 MB / 0.5358 GB, free: 9.973 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002247/0.5421, allocations: 41.7 kB / 0.5359 GB, free: 9.926 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002332/0.5445, allocations: 2.935 MB / 0.5387 GB, free: 6.977 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.5448, allocations: 299.9 kB / 0.539 GB, free: 6.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005836/0.5454, allocations: 422.5 kB / 0.5394 GB, free: 6.262 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5456, allocations: 305.1 kB / 0.5397 GB, free: 5.961 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008614/0.5464, allocations: 399.8 kB / 0.5401 GB, free: 5.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.5478, allocations: 1.095 MB / 0.5412 GB, free: 4.141 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/0.55, allocations: 1.611 MB / 0.5427 GB, free: 2.199 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.55, allocations: 7.938 kB / 0.5427 GB, free: 2.191 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1913/0.7414, allocations: 2.207 MB / 0.5449 GB, free: 156.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/0.7415, allocations: 17.89 kB / 0.5449 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003465/0.7418, allocations: 164.5 kB / 0.5451 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-05/0.7419, allocations: 34.34 kB / 0.5451 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.7433, allocations: 357.3 kB / 0.5454 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.172e-05/0.7433, allocations: 47.72 kB / 0.5455 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.7454, allocations: 190.3 kB / 0.5457 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002526/0.7457, allocations: 124 kB / 0.5458 GB, free: 156.5 MB / 478.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.001601/0.7473, allocations: 0.7088 MB / 0.5465 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/0.7485, allocations: 0.7287 MB / 0.5472 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004842/0.7534, allocations: 2.169 MB / 0.5493 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.7534, allocations: 8.469 kB / 0.5493 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.7534, allocations: 2.188 kB / 0.5493 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.7534, allocations: 7.125 kB / 0.5493 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006762/0.7602, allocations: 3.623 MB / 0.5529 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001856/0.7604, allocations: 144.3 kB / 0.553 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007235/0.7612, allocations: 150.8 kB / 0.5531 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.7612, allocations: 4.281 kB / 0.5531 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.451e-05/0.7613, allocations: 61.47 kB / 0.5532 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.777e-06/0.7613, allocations: 4.75 kB / 0.5532 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.7613, allocations: 4.703 kB / 0.5532 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.7651, allocations: 2.161 MB / 0.5553 GB, free: 154.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.7669, allocations: 0.8177 MB / 0.5561 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006852/0.7676, allocations: 20.34 kB / 0.5561 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.7688, allocations: 35.91 kB / 0.5562 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.769, allocations: 102.3 kB / 0.5563 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.7691, allocations: 66.78 kB / 0.5563 GB, free: 154.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006947/0.7761, allocations: 3.631 MB / 0.5599 GB, free: 153.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7761, allocations: 0 / 0.5599 GB, free: 153.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003989/0.7801, allocations: 1.085 MB / 0.5609 GB, free: 153 MB / 478.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.001932/0.7821, allocations: 1.186 MB / 0.5621 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002997/0.7851, allocations: 1.436 MB / 0.5635 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.7851, allocations: 0 / 0.5635 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.7863, allocations: 0.7768 MB / 0.5643 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004323/0.7906, allocations: 0.9884 MB / 0.5652 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.8021, allocations: 8.235 MB / 0.5733 GB, free: 147.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/0.8038, allocations: 2.607 MB / 0.5758 GB, free: 146 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005666/0.8043, allocations: 295.4 kB / 0.5761 GB, free: 145.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8044, allocations: 0 / 0.5761 GB, free: 145.8 MB / 478.1 MB Notification: Performance of Templates: time 0.08419/0.8885, allocations: 71.96 MB / 0.6464 GB, free: 74.4 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches