Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 193.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007605/0.0007605, allocations: 93.47 kB / 299.8 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001997/0.0001998, allocations: 8 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1761, allocations: 51.4 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004368/0.1805, allocations: 7.079 MB / 419.1 MB, free: 18.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.1942, allocations: 20.06 MB / 439.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007269/0.195, allocations: 31.75 kB / 439.2 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.1969, allocations: 0.7772 MB / 440 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003974/0.2009, allocations: 1.481 MB / 441.5 MB, free: 11.99 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.2037, allocations: 1.121 MB / 442.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004059/0.2078, allocations: 3.151 MB / 445.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.2081, allocations: 224.7 kB / 446 MB, free: 7.457 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005262/0.2086, allocations: 0.5168 MB / 446.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000497/0.2091, allocations: 0.5356 MB / 447 MB, free: 6.398 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.164e-05/0.2092, allocations: 24 kB / 447 MB, free: 6.375 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.2119, allocations: 1.33 MB / 448.4 MB, free: 5.043 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.2121, allocations: 150.8 kB / 448.5 MB, free: 4.895 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005455/0.2126, allocations: 0.6849 MB / 449.2 MB, free: 4.199 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.2149, allocations: 2.117 MB / 451.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.215, allocations: 3.938 kB / 451.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.215, allocations: 0 / 451.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.215, allocations: 0 / 451.3 MB, free: 2.07 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.002417/0.2174, allocations: 1.795 MB / 453.1 MB, free: 220 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2174, allocations: 8.031 kB / 453.1 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.2176, allocations: 189.8 kB / 453.3 MB, free: 20 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.2193, allocations: 1.365 MB / 454.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.2194, allocations: 20.56 kB / 454.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.465e-05/0.2194, allocations: 24 kB / 454.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008386/0.2203, allocations: 461.2 kB / 455.2 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2203, allocations: 7.875 kB / 455.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.2204, allocations: 4 kB / 455.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.2204, allocations: 12 kB / 455.2 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2214, allocations: 0.5059 MB / 455.7 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.2238, allocations: 1.642 MB / 457.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008714/0.2247, allocations: 411.4 kB / 457.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006906/0.2254, allocations: 437.7 kB / 458.2 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.2388, allocations: 15.53 MB / 473.7 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005689/0.2394, allocations: 275.8 kB / 474 MB, free: 9.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.814e-06/0.2394, allocations: 0 / 474 MB, free: 9.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001902/0.2413, allocations: 0.9023 MB / 474.9 MB, free: 8.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.2414, allocations: 67.28 kB / 474.9 MB, free: 8.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.2429, allocations: 1.44 MB / 476.4 MB, free: 6.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.243, allocations: 29.7 kB / 476.4 MB, free: 6.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005577/0.2435, allocations: 0.7226 MB / 477.1 MB, free: 5.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.615e-05/0.2436, allocations: 94.73 kB / 477.2 MB, free: 5.703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.67e-05/0.2437, allocations: 8 kB / 477.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2438, allocations: 326 kB / 477.6 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004465/0.2442, allocations: 181 kB / 477.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005345/0.2448, allocations: 379.4 kB / 478.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009578/0.2457, allocations: 0.5716 MB / 478.7 MB, free: 4.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2457, allocations: 4 kB / 478.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001357/0.2471, allocations: 0.7903 MB / 479.5 MB, free: 3.266 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2471, allocations: 8 kB / 479.5 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.884e-05/0.2472, allocations: 43.98 kB / 479.5 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.2475, allocations: 140.7 kB / 479.7 MB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003973/0.2479, allocations: 124.1 kB / 479.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005492/0.2485, allocations: 0.6733 MB / 480.5 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.249, allocations: 79.61 kB / 480.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.249, allocations: 39.94 kB / 480.6 MB, free: 2.137 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.0003413/0.2494, allocations: 280.2 kB / 480.8 MB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.2495, allocations: 189.7 kB / 481 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.2514, allocations: 0.7815 MB / 481.8 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.2514, allocations: 7.984 kB / 481.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2514, allocations: 0 / 481.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2514, allocations: 0 / 481.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.2534, allocations: 1.353 MB / 483.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-05/0.2535, allocations: 36 kB / 483.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000249/0.2537, allocations: 56.02 kB / 483.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/0.2539, allocations: 124.8 kB / 483.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.254, allocations: 23.94 kB / 483.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005191/0.2545, allocations: 0.6733 MB / 484.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2545, allocations: 0 / 484.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.2557, allocations: 0.7513 MB / 484.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.256, allocations: 274.8 kB / 485.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.2562, allocations: 8 kB / 485.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.2566, allocations: 35.95 kB / 485.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.2567, allocations: 47.91 kB / 485.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.2568, allocations: 19.98 kB / 485.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001053/0.2578, allocations: 0.9415 MB / 486.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2578, allocations: 0 / 486.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007229/0.2586, allocations: 335.8 kB / 486.5 MB, free: 12.04 MB / 362.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.0007444/0.2593, allocations: 0.5883 MB / 487.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.2605, allocations: 0.554 MB / 487.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2605, allocations: 4.125 kB / 487.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006211/0.2612, allocations: 315.3 kB / 487.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.2624, allocations: 286.9 kB / 488.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.2655, allocations: 2.672 MB / 490.9 MB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.2661, allocations: 1.149 MB / 492 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006411/0.2668, allocations: 199.9 kB / 492.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.2669, allocations: 91.42 kB / 492.3 MB, free: 6.094 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2669, allocations: 0 / 492.3 MB, free: 6.094 MB / 362.7 MB Notification: Performance of Templates: time 0.0294/0.2963, allocations: 18.97 MB / 0.4993 GB, free: 3.254 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches