Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000853/0.0008531, allocations: 183.3 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 225.7 MB / 243.2 MB, free: 8.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007724/0.0007725, allocations: 99.45 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002193/0.0002194, allocations: 8 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1721, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004216/0.1764, allocations: 7.064 MB / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.1891, allocations: 19.81 MB / 431.5 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006921/0.1898, allocations: 31.75 kB / 431.5 MB, free: 4.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.1915, allocations: 0.7811 MB / 432.3 MB, free: 3.223 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.1955, allocations: 1.488 MB / 433.8 MB, free: 1.723 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.1984, allocations: 1.114 MB / 434.9 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003892/0.2023, allocations: 3.113 MB / 438 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002955/0.2026, allocations: 213 kB / 438.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005139/0.2031, allocations: 0.5168 MB / 438.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004781/0.2036, allocations: 0.5395 MB / 439.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.982e-05/0.2037, allocations: 31.94 kB / 439.3 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.2064, allocations: 1.315 MB / 440.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.2065, allocations: 154.8 kB / 440.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005198/0.2071, allocations: 0.681 MB / 441.4 MB, free: 9.992 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002171/0.2093, allocations: 2.121 MB / 443.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2093, allocations: 0 / 443.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2093, allocations: 3.938 kB / 443.5 MB, free: 7.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2093, allocations: 0 / 443.5 MB, free: 7.859 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002299/0.2116, allocations: 1.795 MB / 445.3 MB, free: 6.004 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.2116, allocations: 8.031 kB / 445.3 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.2118, allocations: 189.8 kB / 445.5 MB, free: 5.809 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/0.2134, allocations: 1.362 MB / 446.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2134, allocations: 24.56 kB / 446.9 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.957e-05/0.2135, allocations: 27.98 kB / 446.9 MB, free: 4.324 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008182/0.2143, allocations: 449.2 kB / 447.4 MB, free: 3.879 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2144, allocations: 3.938 kB / 447.4 MB, free: 3.875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.2144, allocations: 12 kB / 447.4 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2144, allocations: 11.98 kB / 447.4 MB, free: 3.852 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2154, allocations: 0.5059 MB / 447.9 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.2177, allocations: 1.635 MB / 449.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008591/0.2186, allocations: 419.3 kB / 450 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006749/0.2193, allocations: 441.8 kB / 450.4 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.2317, allocations: 15.21 MB / 465.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.2322, allocations: 275.2 kB / 465.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.2323, allocations: 0 / 465.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001857/0.2341, allocations: 0.9023 MB / 466.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.2342, allocations: 67.28 kB / 466.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/0.2356, allocations: 1.436 MB / 468.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.2356, allocations: 29.7 kB / 468.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005204/0.2362, allocations: 0.7226 MB / 469 MB, free: 11.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.207e-05/0.2362, allocations: 94.75 kB / 469.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.2363, allocations: 4 kB / 469.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.46e-05/0.2364, allocations: 334 kB / 469.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004248/0.2368, allocations: 177 kB / 469.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005094/0.2373, allocations: 379.4 kB / 470 MB, free: 10.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/0.2383, allocations: 0.5789 MB / 470.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2383, allocations: 0 / 470.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001294/0.2396, allocations: 0.7962 MB / 471.4 MB, free: 9.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2396, allocations: 8 kB / 471.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.134e-05/0.2397, allocations: 36 kB / 471.4 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.24, allocations: 141.4 kB / 471.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.2404, allocations: 111.9 kB / 471.7 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005113/0.2409, allocations: 0.685 MB / 472.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004933/0.2414, allocations: 79.45 kB / 472.4 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.2414, allocations: 36 kB / 472.5 MB, free: 8.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003194/0.2418, allocations: 281.6 kB / 472.7 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.2419, allocations: 185.8 kB / 472.9 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.2437, allocations: 0.7847 MB / 473.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.2437, allocations: 4 kB / 473.7 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2437, allocations: 0 / 473.7 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2437, allocations: 3.984 kB / 473.7 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.2457, allocations: 1.349 MB / 475.1 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.236e-05/0.2458, allocations: 32.06 kB / 475.1 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.246, allocations: 63.89 kB / 475.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002246/0.2462, allocations: 132.8 kB / 475.3 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.2463, allocations: 19.94 kB / 475.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005105/0.2468, allocations: 0.6694 MB / 476 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2468, allocations: 0 / 476 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.248, allocations: 0.7514 MB / 476.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.2483, allocations: 270.9 kB / 477 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.2484, allocations: 11.94 kB / 477 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.2488, allocations: 43.95 kB / 477 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.2489, allocations: 39.91 kB / 477.1 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.249, allocations: 23.98 kB / 477.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009819/0.25, allocations: 0.9376 MB / 478 MB, free: 2.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.25, allocations: 0 / 478 MB, free: 2.555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006729/0.2506, allocations: 331.6 kB / 478.4 MB, free: 2.234 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006776/0.2513, allocations: 0.5831 MB / 478.9 MB, free: 1.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.2524, allocations: 0.5473 MB / 479.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2524, allocations: 0 / 479.5 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005833/0.253, allocations: 315.9 kB / 479.8 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.2542, allocations: 290.9 kB / 480.1 MB, free: 488 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.2571, allocations: 2.687 MB / 482.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/0.2577, allocations: 1.145 MB / 483.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005836/0.2582, allocations: 199.9 kB / 484.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.2584, allocations: 87.44 kB / 484.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2584, allocations: 0 / 484.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of Templates: time 0.02719/0.2856, allocations: 18.92 MB / 0.4913 GB, free: 9.469 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches