Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009761/0.0009761, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.6 MB / 223.7 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000846/0.000846, allocations: 86.41 kB / 272.1 MB, free: 8.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.000237, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2039, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01385/0.2178, allocations: 22.5 MB / 399.1 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01936/0.2372, allocations: 21.72 MB / 420.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004275/0.2415, allocations: 55.69 kB / 420.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004294/0.2459, allocations: 1.49 MB / 422.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009963/0.2559, allocations: 2.674 MB / 425 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004834/0.2607, allocations: 1.305 MB / 426.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01756/0.2783, allocations: 11.77 MB / 438.1 MB, free: 2.434 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.2797, allocations: 0.822 MB / 438.9 MB, free: 1.578 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.2821, allocations: 1.721 MB / 440.7 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002311/0.2844, allocations: 1.983 MB / 442.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003464/0.2847, allocations: 80 kB / 442.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.2884, allocations: 1.116 MB / 443.8 MB, free: 12.65 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005703/0.2889, allocations: 0.554 MB / 444.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002561/0.2915, allocations: 2.602 MB / 447 MB, free: 9.469 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006884/0.2984, allocations: 6.383 MB / 453.4 MB, free: 3.059 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2984, allocations: 0 / 453.4 MB, free: 3.059 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2984, allocations: 0 / 453.4 MB, free: 3.059 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.573e-05/0.2985, allocations: 0 / 453.4 MB, free: 3.059 MB / 330.7 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.007828/0.3064, allocations: 5.827 MB / 459.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3064, allocations: 8.031 kB / 459.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007049/0.3071, allocations: 0.7526 MB / 460 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006478/0.3136, allocations: 4.668 MB / 464.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-05/0.3137, allocations: 66 kB / 464.7 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.3139, allocations: 111.8 kB / 464.8 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.3161, allocations: 1.313 MB / 466.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3162, allocations: 0 / 466.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.3163, allocations: 36 kB / 466.2 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.3163, allocations: 39.92 kB / 466.2 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.3191, allocations: 1.527 MB / 467.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/0.3293, allocations: 5.675 MB / 473.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.3311, allocations: 1.026 MB / 474.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.3328, allocations: 1.247 MB / 475.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2009/0.5338, allocations: 59.97 MB / 0.5231 GB, free: 109.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009586/0.5347, allocations: 0.5791 MB / 0.5236 GB, free: 109.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 3.516e-06/0.5348, allocations: 0.6094 kB / 0.5236 GB, free: 109.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.002968/0.5377, allocations: 1.944 MB / 0.5255 GB, free: 108.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.5378, allocations: 69.58 kB / 0.5256 GB, free: 108.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00488/0.5427, allocations: 5.55 MB / 0.531 GB, free: 105.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.157e-05/0.5428, allocations: 45.17 kB / 0.5311 GB, free: 105.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/0.5444, allocations: 2.945 MB / 0.534 GB, free: 102.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.5446, allocations: 294 kB / 0.5342 GB, free: 101.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.589e-05/0.5446, allocations: 24 kB / 0.5343 GB, free: 101.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.815e-05/0.5447, allocations: 365.9 kB / 0.5346 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006984/0.5454, allocations: 422.2 kB / 0.535 GB, free: 101 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008901/0.5463, allocations: 1.107 MB / 0.5361 GB, free: 99.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.548, allocations: 1.648 MB / 0.5377 GB, free: 97.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.548, allocations: 8 kB / 0.5377 GB, free: 97.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002529/0.5505, allocations: 2.24 MB / 0.5399 GB, free: 95.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.5506, allocations: 19.94 kB / 0.5399 GB, free: 95.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/0.5507, allocations: 167.4 kB / 0.5401 GB, free: 95.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.965e-05/0.5508, allocations: 32 kB / 0.5401 GB, free: 95.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.5518, allocations: 372.7 kB / 0.5405 GB, free: 94.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.5518, allocations: 51.8 kB / 0.5405 GB, free: 94.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.5533, allocations: 194 kB / 0.5407 GB, free: 94.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.5534, allocations: 126.6 kB / 0.5408 GB, free: 94.56 MB / 394.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009439/0.5544, allocations: 0.7159 MB / 0.5415 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/0.5548, allocations: 0.7248 MB / 0.5422 GB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.5588, allocations: 2.205 MB / 0.5444 GB, free: 90.97 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.5589, allocations: 8 kB / 0.5444 GB, free: 90.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.5589, allocations: 0 / 0.5444 GB, free: 90.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5589, allocations: 3.984 kB / 0.5444 GB, free: 90.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004103/0.563, allocations: 3.664 MB / 0.548 GB, free: 87.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001422/0.5632, allocations: 140 kB / 0.5481 GB, free: 87.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000659/0.5638, allocations: 164.8 kB / 0.5483 GB, free: 86.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.443e-06/0.5638, allocations: 0 / 0.5483 GB, free: 86.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.679e-05/0.5639, allocations: 64 kB / 0.5483 GB, free: 86.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.5639, allocations: 5.312 kB / 0.5483 GB, free: 86.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5639, allocations: 0 / 0.5483 GB, free: 86.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.5668, allocations: 2.227 MB / 0.5505 GB, free: 84.63 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.5679, allocations: 0.8161 MB / 0.5513 GB, free: 83.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005351/0.5684, allocations: 15.81 kB / 0.5513 GB, free: 83.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5695, allocations: 51.95 kB / 0.5514 GB, free: 83.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.5697, allocations: 96.48 kB / 0.5514 GB, free: 83.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.5698, allocations: 68 kB / 0.5515 GB, free: 83.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003715/0.5735, allocations: 3.57 MB / 0.555 GB, free: 80.03 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5735, allocations: 0 / 0.555 GB, free: 80.03 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001999/0.5756, allocations: 1.08 MB / 0.5561 GB, free: 78.99 MB / 394.7 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.001292/0.5769, allocations: 1.187 MB / 0.5572 GB, free: 78.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.5788, allocations: 1.467 MB / 0.5586 GB, free: 76.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5788, allocations: 0 / 0.5586 GB, free: 76.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008487/0.5797, allocations: 0.7864 MB / 0.5594 GB, free: 75.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.5829, allocations: 0.9334 MB / 0.5603 GB, free: 74.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008913/0.5918, allocations: 9.918 MB / 0.57 GB, free: 64.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.593, allocations: 2.604 MB / 0.5726 GB, free: 62.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002143/0.5952, allocations: 0.6888 MB / 0.5732 GB, free: 61.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.5955, allocations: 283.4 kB / 0.5735 GB, free: 61.23 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5955, allocations: 3.938 kB / 0.5735 GB, free: 61.22 MB / 394.7 MB Notification: Performance of Templates: time 0.07438/0.6699, allocations: 53.58 MB / 0.6258 GB, free: 7.605 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches