Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.001729, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001973, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 227.7 MB / 247.1 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 59.41 kB / 307.2 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1009, allocations: 50.54 MB / 357.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008917/0.1098, allocations: 8.041 MB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1649/0.2748, allocations: 19.45 MB / 385.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007023/0.2755, allocations: 32.09 kB / 385.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002069/0.2776, allocations: 0.8498 MB / 386.1 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005512/0.2831, allocations: 1.803 MB / 388 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004867/0.288, allocations: 1.332 MB / 389.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005704/0.2937, allocations: 3.284 MB / 392.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005041/0.2943, allocations: 226.1 kB / 392.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.2953, allocations: 0.5474 MB / 393.3 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006019/0.2959, allocations: 0.5518 MB / 393.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.2961, allocations: 41.78 kB / 393.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004783/0.3009, allocations: 1.449 MB / 395.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000255/0.3011, allocations: 174 kB / 395.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3022, allocations: 0.6854 MB / 396.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004205/0.3064, allocations: 2.195 MB / 398.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3064, allocations: 0 / 398.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3065, allocations: 0 / 398.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.3065, allocations: 0 / 398.4 MB, free: 15.72 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.003244/0.3097, allocations: 2.013 MB / 400.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.3098, allocations: 10.03 kB / 400.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.31, allocations: 196.4 kB / 400.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.312, allocations: 1.365 MB / 402 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.312, allocations: 15.91 kB / 402 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.849e-05/0.3121, allocations: 28.91 kB / 402.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009037/0.313, allocations: 429.6 kB / 402.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3131, allocations: 0 / 402.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.3131, allocations: 10.19 kB / 402.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.3131, allocations: 11.19 kB / 402.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.3142, allocations: 475.5 kB / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002698/0.3169, allocations: 1.628 MB / 404.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009345/0.3179, allocations: 379.1 kB / 405 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007501/0.3186, allocations: 416.3 kB / 405.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/0.3351, allocations: 15.52 MB / 420.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006495/0.3358, allocations: 259.1 kB / 421.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.093e-06/0.3358, allocations: 0 / 421.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002194/0.338, allocations: 0.8407 MB / 422 MB, free: 8.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/0.3381, allocations: 63.33 kB / 422 MB, free: 8.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.3401, allocations: 1.451 MB / 423.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.3401, allocations: 33.7 kB / 423.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006745/0.3408, allocations: 0.7226 MB / 424.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-05/0.3409, allocations: 86.75 kB / 424.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.3411, allocations: 134 kB / 424.5 MB, free: 6.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3413, allocations: 325.9 kB / 424.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004757/0.3418, allocations: 157 kB / 424.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.3424, allocations: 367.4 kB / 425.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3435, allocations: 0.5256 MB / 425.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3436, allocations: 0 / 425.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001563/0.3451, allocations: 0.7631 MB / 426.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3452, allocations: 8 kB / 426.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.64e-05/0.3452, allocations: 47.2 kB / 426.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.3455, allocations: 132.8 kB / 426.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.346, allocations: 107.8 kB / 426.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006849/0.3467, allocations: 0.685 MB / 427.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.3473, allocations: 71.41 kB / 427.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.3474, allocations: 32 kB / 427.7 MB, free: 2.688 MB / 334.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.000385/0.3478, allocations: 276.3 kB / 427.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.348, allocations: 181.9 kB / 428.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/0.3501, allocations: 0.7491 MB / 428.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.3501, allocations: 8 kB / 428.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3501, allocations: 0 / 428.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3501, allocations: 0 / 428.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.3524, allocations: 1.295 MB / 430.2 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.064e-05/0.3525, allocations: 39.98 kB / 430.2 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.3528, allocations: 47.89 kB / 430.2 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.353, allocations: 132.9 kB / 430.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.3531, allocations: 16 kB / 430.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006396/0.3537, allocations: 0.681 MB / 431.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3538, allocations: 0 / 431.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.3552, allocations: 0.7099 MB / 431.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004118/0.3556, allocations: 278.8 kB / 432 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.3558, allocations: 8 kB / 432.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.3562, allocations: 23.97 kB / 432.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3563, allocations: 43.95 kB / 432.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.3564, allocations: 16 kB / 432.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.3577, allocations: 0.961 MB / 433.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3577, allocations: 0 / 433.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000921/0.3586, allocations: 335.8 kB / 433.4 MB, free: 12.73 MB / 350.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.0009288/0.3596, allocations: 0.5724 MB / 434 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.3609, allocations: 0.5273 MB / 434.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.361, allocations: 0 / 434.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007832/0.3617, allocations: 295.2 kB / 434.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.3632, allocations: 323.7 kB / 435.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003854/0.367, allocations: 2.23 MB / 437.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/0.3679, allocations: 1.149 MB / 438.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000857/0.3688, allocations: 203.9 kB / 438.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.369, allocations: 95.31 kB / 438.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.369, allocations: 0 / 438.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of Templates: time 0.03629/0.4053, allocations: 19.77 MB / 458.6 MB, free: 3.633 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches