Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 113.4 kB / 17.73 MB, free: 5.324 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.0009804/0.0009804, allocations: 188.2 kB / 18.66 MB, free: 4.398 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.325/1.325, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001244/0.001244, allocations: 51.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08745, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1988/0.2862, allocations: 7.705 MB / 382.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.3059, allocations: 18.52 MB / 401.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.3077, allocations: 62.81 kB / 401.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002856/0.3107, allocations: 0.8308 MB / 402.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.3182, allocations: 1.774 MB / 404 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005173/0.3234, allocations: 1.285 MB / 405.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005951/0.3294, allocations: 3.189 MB / 408.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.3298, allocations: 224.4 kB / 408.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009116/0.3308, allocations: 0.516 MB / 409.2 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006892/0.3315, allocations: 0.5476 MB / 409.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.3316, allocations: 41 kB / 409.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004813/0.3364, allocations: 1.131 MB / 411 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002887/0.3367, allocations: 164.9 kB / 411.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.3379, allocations: 0.6818 MB / 411.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005142/0.3431, allocations: 2.235 MB / 414 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3431, allocations: 1.344 kB / 414 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.3431, allocations: 0 / 414 MB, free: 6.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.383e-05/0.3432, allocations: 3.938 kB / 414 MB, free: 6.051 MB / 334.1 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.003922/0.3471, allocations: 2.011 MB / 416 MB, free: 4.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.3472, allocations: 10.5 kB / 416.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.3475, allocations: 192 kB / 416.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/0.3495, allocations: 1.366 MB / 417.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.3495, allocations: 18 kB / 417.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.324e-05/0.3496, allocations: 30.48 kB / 417.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009619/0.3506, allocations: 433 kB / 418.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3506, allocations: 0 / 418.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.3507, allocations: 9.594 kB / 418.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.3507, allocations: 15.98 kB / 418.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.3519, allocations: 473.4 kB / 418.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.3549, allocations: 1.619 MB / 420.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009744/0.3558, allocations: 380.6 kB / 420.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007569/0.3566, allocations: 411.8 kB / 421 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01568/0.3723, allocations: 15.23 MB / 436.2 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000661/0.373, allocations: 255.1 kB / 436.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 4.148e-06/0.373, allocations: 4 kB / 436.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002208/0.3752, allocations: 0.8407 MB / 437.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.3753, allocations: 63.31 kB / 437.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.3769, allocations: 1.468 MB / 438.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.377, allocations: 29.7 kB / 438.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005557/0.3775, allocations: 0.7188 MB / 439.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.928e-05/0.3776, allocations: 94.73 kB / 439.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.3778, allocations: 133.9 kB / 439.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3779, allocations: 330 kB / 440.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004534/0.3784, allocations: 157 kB / 440.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005728/0.3789, allocations: 363.4 kB / 440.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009947/0.38, allocations: 0.5294 MB / 441.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.38, allocations: 5.938 kB / 441.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001458/0.3814, allocations: 0.7546 MB / 441.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3815, allocations: 8.844 kB / 441.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.103e-05/0.3815, allocations: 43.98 kB / 442 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003056/0.3818, allocations: 136.8 kB / 442.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.3823, allocations: 107.8 kB / 442.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006123/0.3829, allocations: 0.685 MB / 442.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007415/0.3837, allocations: 67.41 kB / 442.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.648e-05/0.3837, allocations: 41.88 kB / 443 MB, free: 9.012 MB / 366.1 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 (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 (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.0003826/0.3841, allocations: 273.6 kB / 443.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.3843, allocations: 185.8 kB / 443.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.3861, allocations: 0.7458 MB / 444.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3862, allocations: 8 kB / 444.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3862, allocations: 0 / 444.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3862, allocations: 3.984 kB / 444.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.3886, allocations: 1.311 MB / 445.5 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.978e-05/0.3886, allocations: 36 kB / 445.5 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.3889, allocations: 51.58 kB / 445.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002528/0.3892, allocations: 132.8 kB / 445.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.3892, allocations: 16 kB / 445.7 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005597/0.3898, allocations: 0.6733 MB / 446.4 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.3898, allocations: 0 / 446.4 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3911, allocations: 0.7278 MB / 447.1 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005242/0.3916, allocations: 282.6 kB / 447.4 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.3918, allocations: 4 kB / 447.4 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004376/0.3922, allocations: 31.95 kB / 447.4 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3924, allocations: 35.97 kB / 447.5 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.3924, allocations: 27.98 kB / 447.5 MB, free: 4.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.3935, allocations: 0.9614 MB / 448.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3935, allocations: 4 kB / 448.5 MB, free: 3.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009087/0.3945, allocations: 331.8 kB / 448.8 MB, free: 3.012 MB / 366.1 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.0008264/0.3953, allocations: 0.5699 MB / 449.4 MB, free: 2.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3966, allocations: 0.5122 MB / 449.9 MB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3966, allocations: 0 / 449.9 MB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006635/0.3973, allocations: 295.5 kB / 450.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009765/0.3983, allocations: 270 kB / 450.4 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.4015, allocations: 2.214 MB / 452.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006129/0.4021, allocations: 1.153 MB / 453.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005129/0.4027, allocations: 195.9 kB / 454 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.4028, allocations: 87.44 kB / 454.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4028, allocations: 0 / 454.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of Templates: time 0.03679/0.4396, allocations: 20.26 MB / 474.3 MB, free: 9.344 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches