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.001424/0.001424, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001529/0.00153, allocations: 191 kB / 19.29 MB, free: 3.715 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.428/1.428, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001317/0.001317, allocations: 51.92 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09382/0.09515, allocations: 46.63 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008505/0.1037, allocations: 7.71 MB / 336.4 MB, free: 12.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.1236, allocations: 18.51 MB / 355 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.1248, allocations: 59.44 kB / 355 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.1271, allocations: 0.8242 MB / 355.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005716/0.1328, allocations: 1.774 MB / 357.6 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004096/0.1369, allocations: 1.287 MB / 358.9 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005539/0.1425, allocations: 3.187 MB / 362.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.1429, allocations: 220.7 kB / 362.3 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007063/0.1437, allocations: 0.5054 MB / 362.8 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005821/0.1442, allocations: 0.5513 MB / 363.4 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.461e-05/0.1443, allocations: 44 kB / 363.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004508/0.1489, allocations: 1.128 MB / 364.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.1491, allocations: 174.6 kB / 364.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008041/0.1499, allocations: 0.6793 MB / 365.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003958/0.1539, allocations: 2.238 MB / 367.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1539, allocations: 0 / 367.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1539, allocations: 0 / 367.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.388e-05/0.154, allocations: 0 / 367.6 MB, free: 12.7 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.004068/0.158, allocations: 2.02 MB / 369.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.1581, allocations: 8.031 kB / 369.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/0.1584, allocations: 193.7 kB / 369.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.1604, allocations: 1.358 MB / 371.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.1604, allocations: 24.56 kB / 371.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.984e-05/0.1605, allocations: 27.91 kB / 371.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008858/0.1614, allocations: 437.2 kB / 371.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.1614, allocations: 0 / 371.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.952e-05/0.1615, allocations: 15.94 kB / 371.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1615, allocations: 4 kB / 371.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.1625, allocations: 482.1 kB / 372.2 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.1653, allocations: 1.623 MB / 373.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008465/0.1661, allocations: 371.3 kB / 374.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/0.1668, allocations: 421.8 kB / 374.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1962/0.363, allocations: 15.21 MB / 389.8 MB, free: 47.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.3638, allocations: 262.7 kB / 390 MB, free: 47.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.515e-06/0.3638, allocations: 1.156 kB / 390 MB, free: 47.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002202/0.366, allocations: 0.8454 MB / 390.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.366, allocations: 57.08 kB / 390.9 MB, free: 46.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/0.3683, allocations: 1.465 MB / 392.4 MB, free: 46.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.3683, allocations: 36.2 kB / 392.4 MB, free: 46.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005595/0.3689, allocations: 0.7235 MB / 393.1 MB, free: 45.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.189e-05/0.369, allocations: 94.05 kB / 393.2 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.3692, allocations: 125.5 kB / 393.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.042e-05/0.3693, allocations: 326.3 kB / 393.7 MB, free: 45.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004284/0.3697, allocations: 164.5 kB / 393.8 MB, free: 45.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/0.3702, allocations: 355.2 kB / 394.2 MB, free: 44.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008826/0.3711, allocations: 0.5328 MB / 394.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3711, allocations: 2.688 kB / 394.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001422/0.3726, allocations: 0.7575 MB / 395.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.3726, allocations: 7.406 kB / 395.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.219e-05/0.3727, allocations: 43.19 kB / 395.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003513/0.373, allocations: 136.8 kB / 395.7 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.3735, allocations: 107.7 kB / 395.8 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005477/0.374, allocations: 0.6793 MB / 396.4 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/0.3746, allocations: 69.3 kB / 396.5 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.3747, allocations: 36.8 kB / 396.6 MB, free: 43.66 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.0003621/0.3751, allocations: 279.8 kB / 396.8 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.3752, allocations: 190.1 kB / 397 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.3768, allocations: 0.7434 MB / 397.8 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.3768, allocations: 2.656 kB / 397.8 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3768, allocations: 0 / 397.8 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3768, allocations: 1.438 kB / 397.8 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.3789, allocations: 1.322 MB / 399.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-05/0.379, allocations: 33.09 kB / 399.1 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3793, allocations: 51.25 kB / 399.2 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.3795, allocations: 117.2 kB / 399.3 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.3796, allocations: 24.7 kB / 399.3 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004655/0.38, allocations: 0.6658 MB / 400 MB, free: 41.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3801, allocations: 5.219 kB / 400 MB, free: 41.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.3813, allocations: 0.7184 MB / 400.7 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004198/0.3817, allocations: 278 kB / 401 MB, free: 40.9 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.3819, allocations: 12.98 kB / 401 MB, free: 40.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.3823, allocations: 29.72 kB / 401 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3825, allocations: 37.95 kB / 401 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.903e-05/0.3825, allocations: 25.81 kB / 401.1 MB, free: 40.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.3836, allocations: 0.9735 MB / 402 MB, free: 40.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3836, allocations: 0 / 402 MB, free: 40.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001249/0.3849, allocations: 333.9 kB / 402.4 MB, free: 40.27 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.001025/0.3859, allocations: 0.5768 MB / 402.9 MB, free: 40.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.3877, allocations: 0.5064 MB / 403.4 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3877, allocations: 4.125 kB / 403.5 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.3883, allocations: 301.2 kB / 403.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000905/0.3892, allocations: 264.8 kB / 404 MB, free: 39.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.392, allocations: 2.208 MB / 406.2 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.3925, allocations: 1.157 MB / 407.4 MB, free: 36.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004472/0.3929, allocations: 200.9 kB / 407.6 MB, free: 36.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3931, allocations: 91.38 kB / 407.7 MB, free: 36.23 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3931, allocations: 0 / 407.7 MB, free: 36.23 MB / 318.1 MB Notification: Performance of Templates: time 0.02543/0.4185, allocations: 19.8 MB / 427.5 MB, free: 16.45 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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