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.001385/0.001385, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.00144/0.00144, allocations: 198 kB / 18.07 MB, free: 5.434 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.368/1.368, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001358/0.001358, allocations: 55.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.0961, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008362/0.1045, allocations: 7.675 MB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02307/0.1276, allocations: 18.68 MB / 353 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1287, allocations: 35.69 kB / 353 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002277/0.131, allocations: 0.7438 MB / 353.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005483/0.1365, allocations: 1.473 MB / 355.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.1407, allocations: 1.071 MB / 356.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005454/0.1462, allocations: 3.116 MB / 359.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004809/0.1467, allocations: 213 kB / 359.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007921/0.1475, allocations: 489.5 kB / 360.1 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006396/0.1482, allocations: 0.5395 MB / 360.6 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.1483, allocations: 32 kB / 360.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005055/0.1533, allocations: 1.101 MB / 361.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000328/0.1537, allocations: 158.7 kB / 361.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.1548, allocations: 0.6715 MB / 362.6 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004478/0.1593, allocations: 2.176 MB / 364.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1593, allocations: 0 / 364.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1593, allocations: 0 / 364.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.1593, allocations: 0 / 364.8 MB, free: 14.56 MB / 318.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.003106/0.1624, allocations: 2.027 MB / 366.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.1625, allocations: 12.02 kB / 366.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.1628, allocations: 193.7 kB / 367 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.1647, allocations: 1.37 MB / 368.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1647, allocations: 20.55 kB / 368.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.01e-05/0.1648, allocations: 31.91 kB / 368.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009212/0.1657, allocations: 433.2 kB / 368.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1658, allocations: 0 / 368.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.1658, allocations: 12 kB / 368.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1658, allocations: 8 kB / 368.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1669, allocations: 474.1 kB / 369.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.1696, allocations: 1.615 MB / 370.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008579/0.1704, allocations: 379.2 kB / 371.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006774/0.1711, allocations: 413.9 kB / 371.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1833/0.3545, allocations: 15.23 MB / 386.9 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006662/0.3552, allocations: 251 kB / 387.2 MB, free: 48.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.525e-06/0.3552, allocations: 3.531 kB / 387.2 MB, free: 48.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002242/0.3574, allocations: 0.8484 MB / 388 MB, free: 48.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.3575, allocations: 61.11 kB / 388.1 MB, free: 48.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/0.3596, allocations: 1.462 MB / 389.5 MB, free: 47.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.3597, allocations: 32.05 kB / 389.6 MB, free: 47.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005221/0.3602, allocations: 0.7224 MB / 390.3 MB, free: 47.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.3603, allocations: 100.6 kB / 390.4 MB, free: 47.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.3605, allocations: 125.2 kB / 390.5 MB, free: 47.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.3606, allocations: 327.6 kB / 390.8 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004607/0.361, allocations: 160.8 kB / 391 MB, free: 46.76 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005384/0.3616, allocations: 358.5 kB / 391.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.3625, allocations: 0.5305 MB / 391.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3625, allocations: 5.031 kB / 391.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001511/0.364, allocations: 0.758 MB / 392.6 MB, free: 45.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.3641, allocations: 8.031 kB / 392.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.538e-05/0.3642, allocations: 43.69 kB / 392.7 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004056/0.3646, allocations: 135.6 kB / 392.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.3651, allocations: 107.6 kB / 392.9 MB, free: 45.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005516/0.3656, allocations: 0.6759 MB / 393.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006294/0.3663, allocations: 71.52 kB / 393.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.146e-05/0.3663, allocations: 38.33 kB / 393.7 MB, free: 45.17 MB / 318.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.0004733/0.3668, allocations: 277.2 kB / 394 MB, free: 44.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.367, allocations: 188.9 kB / 394.2 MB, free: 44.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.3689, allocations: 0.748 MB / 394.9 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3689, allocations: 7.625 kB / 394.9 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.369, allocations: 3.391 kB / 394.9 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.369, allocations: 2.859 kB / 394.9 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.3709, allocations: 1.319 MB / 396.3 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.763e-05/0.371, allocations: 37 kB / 396.3 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.3712, allocations: 46.33 kB / 396.3 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002744/0.3715, allocations: 129.2 kB / 396.5 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.3716, allocations: 20 kB / 396.5 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004358/0.372, allocations: 0.6674 MB / 397.1 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.372, allocations: 3.938 kB / 397.1 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.3732, allocations: 0.7104 MB / 397.9 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000319/0.3736, allocations: 279.4 kB / 398.1 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.3737, allocations: 5.719 kB / 398.1 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.3741, allocations: 34.39 kB / 398.2 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3742, allocations: 34.53 kB / 398.2 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.3743, allocations: 29.39 kB / 398.2 MB, free: 42.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001116/0.3754, allocations: 0.9627 MB / 399.2 MB, free: 41.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3754, allocations: 0 / 399.2 MB, free: 41.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001052/0.3765, allocations: 337.6 kB / 399.5 MB, free: 41.95 MB / 318.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.0007736/0.3773, allocations: 0.5882 MB / 400.1 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.3784, allocations: 0.5124 MB / 400.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3784, allocations: 0 / 400.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.379, allocations: 286.3 kB / 400.9 MB, free: 41.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009236/0.3799, allocations: 248.1 kB / 401.1 MB, free: 41.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.3829, allocations: 2.641 MB / 403.8 MB, free: 39.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3833, allocations: 1.153 MB / 404.9 MB, free: 38.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006491/0.384, allocations: 199.1 kB / 405.1 MB, free: 37.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.3841, allocations: 94.81 kB / 405.2 MB, free: 37.79 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3841, allocations: 0 / 405.2 MB, free: 37.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02685/0.4109, allocations: 19.07 MB / 424.3 MB, free: 18.75 MB / 318.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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches