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.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 175.2 kB / 17.36 MB, free: 4.449 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.29/1.29, 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.0007633/0.0007633, allocations: 94.55 kB / 272.1 MB, free: 8.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.00024, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2048, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005304/0.2102, allocations: 6.786 MB / 383.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.2261, allocations: 18.93 MB / 402.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.2273, allocations: 31.75 kB / 402.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.2292, allocations: 0.7538 MB / 403.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004595/0.2338, allocations: 1.465 MB / 404.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003191/0.237, allocations: 1.074 MB / 405.6 MB, free: 19.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004569/0.2416, allocations: 3.038 MB / 408.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.242, allocations: 213.1 kB / 408.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005642/0.2426, allocations: 473.4 kB / 409.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000489/0.2431, allocations: 0.5318 MB / 409.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.717e-05/0.2431, allocations: 28 kB / 409.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002892/0.246, allocations: 1.07 MB / 411 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.2462, allocations: 154.8 kB / 411.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004485/0.2466, allocations: 0.681 MB / 411.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.2485, allocations: 2.14 MB / 414 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2485, allocations: 4 kB / 414 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2485, allocations: 0 / 414 MB, free: 10.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.2486, allocations: 0 / 414 MB, free: 10.64 MB / 298.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.002028/0.2506, allocations: 1.799 MB / 415.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2506, allocations: 8.031 kB / 415.8 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.2508, allocations: 193.7 kB / 416 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/0.2522, allocations: 1.37 MB / 417.3 MB, free: 7.137 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.2522, allocations: 20.56 kB / 417.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.62e-05/0.2523, allocations: 31.91 kB / 417.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007234/0.253, allocations: 457.1 kB / 417.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.253, allocations: 0 / 417.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.2531, allocations: 12 kB / 417.8 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2531, allocations: 7.984 kB / 417.8 MB, free: 6.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000893/0.254, allocations: 0.5098 MB / 418.3 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.256, allocations: 1.642 MB / 420 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007682/0.2568, allocations: 416.6 kB / 420.4 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005939/0.2574, allocations: 438.3 kB / 420.8 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0134/0.2708, allocations: 15.25 MB / 436.1 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006018/0.2714, allocations: 283.1 kB / 436.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.933e-06/0.2714, allocations: 4 kB / 436.4 MB, free: 1.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001972/0.2734, allocations: 0.9046 MB / 437.3 MB, free: 1.004 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.2735, allocations: 55.41 kB / 437.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.2751, allocations: 1.444 MB / 438.8 MB, free: 15.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.2751, allocations: 33.7 kB / 438.8 MB, free: 15.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000609/0.2757, allocations: 0.7227 MB / 439.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.356e-05/0.2758, allocations: 98.72 kB / 439.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.2759, allocations: 8 kB / 439.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.276, allocations: 330 kB / 439.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.2764, allocations: 181 kB / 440.1 MB, free: 14.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005773/0.277, allocations: 383.4 kB / 440.5 MB, free: 13.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009917/0.278, allocations: 0.58 MB / 441.1 MB, free: 12.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.278, allocations: 4 kB / 441.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001423/0.2795, allocations: 0.7861 MB / 441.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.2795, allocations: 12.56 kB / 441.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.966e-05/0.2796, allocations: 47.98 kB / 441.9 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003429/0.2799, allocations: 129.4 kB / 442 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.2804, allocations: 119.8 kB / 442.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005884/0.281, allocations: 0.6812 MB / 442.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.2815, allocations: 83.34 kB / 442.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.2816, allocations: 36 kB / 443 MB, free: 11.01 MB / 330.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.000431/0.282, allocations: 277.7 kB / 443.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.2822, allocations: 185.8 kB / 443.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/0.2842, allocations: 0.7815 MB / 444.2 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.2842, allocations: 4 kB / 444.2 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2842, allocations: 0 / 444.2 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/0.2842, allocations: 7.969 kB / 444.2 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/0.2863, allocations: 1.354 MB / 445.6 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.013e-05/0.2863, allocations: 32.06 kB / 445.6 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.2866, allocations: 55.95 kB / 445.6 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/0.2868, allocations: 132.8 kB / 445.8 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.2869, allocations: 20 kB / 445.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000537/0.2874, allocations: 0.6733 MB / 446.5 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2874, allocations: 0 / 446.5 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.2887, allocations: 0.7514 MB / 447.2 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.289, allocations: 282.7 kB / 447.5 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.2892, allocations: 8 kB / 447.5 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.2896, allocations: 43.95 kB / 447.5 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.2897, allocations: 35.91 kB / 447.6 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.2898, allocations: 23.98 kB / 447.6 MB, free: 6.188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001117/0.2909, allocations: 0.9458 MB / 448.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2909, allocations: 3.938 kB / 448.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008114/0.2917, allocations: 335.8 kB / 448.9 MB, free: 4.891 MB / 330.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.0007964/0.2925, allocations: 0.5816 MB / 449.5 MB, free: 4.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.2938, allocations: 0.5488 MB / 450 MB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2938, allocations: 0 / 450 MB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006381/0.2944, allocations: 311.4 kB / 450.3 MB, free: 3.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009923/0.2954, allocations: 250.9 kB / 450.6 MB, free: 3.176 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.2987, allocations: 2.69 MB / 453.3 MB, free: 460 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.2993, allocations: 1.16 MB / 454.4 MB, free: 15.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006518/0.3, allocations: 199.9 kB / 454.6 MB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.3001, allocations: 95.38 kB / 454.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.953e-06/0.3001, allocations: 0 / 454.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of Templates: time 0.03035/0.3305, allocations: 19 MB / 473.7 MB, free: 11.96 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches