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.00115/0.00115, allocations: 93.8 kB / 17.3 MB, free: 6.391 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.00133/0.00133, allocations: 173.5 kB / 18.2 MB, free: 5.551 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.376/1.376, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004836/0.0004836, allocations: 20.31 kB / 281.4 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.0931, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007019/0.1002, allocations: 7.247 MB / 336.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01961/0.1198, allocations: 18.4 MB / 354.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.121, allocations: 39.69 kB / 354.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002417/0.1235, allocations: 0.7564 MB / 355.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00604/0.1295, allocations: 1.465 MB / 356.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004428/0.134, allocations: 1.071 MB / 357.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004978/0.139, allocations: 3.128 MB / 361.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003837/0.1394, allocations: 205.1 kB / 361.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006438/0.1401, allocations: 489.5 kB / 361.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005114/0.1406, allocations: 0.5318 MB / 362.3 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.558e-05/0.1407, allocations: 24 kB / 362.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003507/0.1442, allocations: 1.109 MB / 363.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.1444, allocations: 158.7 kB / 363.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006398/0.145, allocations: 0.681 MB / 364.2 MB, free: 308 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.1479, allocations: 2.14 MB / 366.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1479, allocations: 0 / 366.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1479, allocations: 0 / 366.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.1479, allocations: 3.938 kB / 366.4 MB, free: 14.15 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.002592/0.1505, allocations: 1.795 MB / 368.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1506, allocations: 19.97 kB / 368.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.1508, allocations: 189.7 kB / 368.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.1526, allocations: 1.377 MB / 369.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.1526, allocations: 20.56 kB / 369.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.469e-05/0.1527, allocations: 27.98 kB / 369.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009398/0.1537, allocations: 453.2 kB / 370.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1537, allocations: 3.984 kB / 370.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.1537, allocations: 11.98 kB / 370.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.1538, allocations: 16 kB / 370.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.1549, allocations: 0.4981 MB / 370.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.1576, allocations: 1.639 MB / 372.4 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00096/0.1586, allocations: 427.2 kB / 372.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.1593, allocations: 425.8 kB / 373.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1935/0.3529, allocations: 15.24 MB / 388.5 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006883/0.3536, allocations: 280.5 kB / 388.8 MB, free: 47.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.715e-06/0.3536, allocations: 0 / 388.8 MB, free: 47.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002312/0.3559, allocations: 0.9143 MB / 389.7 MB, free: 47.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.356, allocations: 58.38 kB / 389.7 MB, free: 47.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00232/0.3583, allocations: 1.467 MB / 391.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.3583, allocations: 31.48 kB / 391.2 MB, free: 46.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005418/0.3589, allocations: 0.7198 MB / 392 MB, free: 46.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.359, allocations: 95.66 kB / 392 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-05/0.3591, allocations: 45.66 kB / 392.1 MB, free: 46.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.562e-05/0.3591, allocations: 329 kB / 392.4 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004903/0.3596, allocations: 183.1 kB / 392.6 MB, free: 45.76 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.3602, allocations: 384 kB / 393 MB, free: 45.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3612, allocations: 0.5804 MB / 393.5 MB, free: 45.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3612, allocations: 2.375 kB / 393.5 MB, free: 45.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001578/0.3628, allocations: 0.7919 MB / 394.3 MB, free: 44.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3628, allocations: 10.41 kB / 394.3 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.067e-05/0.3629, allocations: 42.78 kB / 394.4 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000321/0.3632, allocations: 136.7 kB / 394.5 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.3637, allocations: 112.6 kB / 394.6 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005624/0.3643, allocations: 0.6864 MB / 395.3 MB, free: 44.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007697/0.3651, allocations: 81.5 kB / 395.4 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-05/0.3651, allocations: 34.28 kB / 395.4 MB, free: 44.15 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.0004777/0.3656, allocations: 278.6 kB / 395.7 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.3659, allocations: 190.3 kB / 395.9 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.3679, allocations: 0.7974 MB / 396.7 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.3679, allocations: 2.188 kB / 396.7 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3679, allocations: 1.312 kB / 396.7 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3679, allocations: 5.797 kB / 396.7 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.3699, allocations: 1.349 MB / 398 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.686e-05/0.3699, allocations: 38.38 kB / 398.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000249/0.3702, allocations: 61 kB / 398.1 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002322/0.3704, allocations: 125.8 kB / 398.3 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.3705, allocations: 25.77 kB / 398.3 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004262/0.3709, allocations: 0.6677 MB / 399 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3709, allocations: 5.344 kB / 399 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.3721, allocations: 0.7525 MB / 399.7 MB, free: 41.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.3724, allocations: 282.7 kB / 400 MB, free: 41.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.3726, allocations: 7.5 kB / 400 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.373, allocations: 40.86 kB / 400 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3731, allocations: 41.36 kB / 400.1 MB, free: 41.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.3732, allocations: 22.66 kB / 400.1 MB, free: 41.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000979/0.3741, allocations: 0.968 MB / 401.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3741, allocations: 0 / 401.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008724/0.375, allocations: 328.1 kB / 401.4 MB, free: 40.86 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.0007432/0.3758, allocations: 0.5809 MB / 402 MB, free: 40.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.377, allocations: 0.5547 MB / 402.5 MB, free: 40.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.377, allocations: 0 / 402.5 MB, free: 40.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005872/0.3776, allocations: 314.3 kB / 402.8 MB, free: 40.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.3786, allocations: 245.2 kB / 403.1 MB, free: 40.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.3813, allocations: 2.697 MB / 405.8 MB, free: 37.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.3817, allocations: 1.153 MB / 406.9 MB, free: 36.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006055/0.3823, allocations: 202 kB / 407.1 MB, free: 36.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3824, allocations: 87.44 kB / 407.2 MB, free: 36.18 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3824, allocations: 0 / 407.2 MB, free: 36.18 MB / 318.1 MB Notification: Performance of Templates: time 0.02624/0.4087, allocations: 18.99 MB / 426.2 MB, free: 17.2 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