Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001058/0.001058, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001065/0.001065, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 54.58 kB / 300 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08008/0.08112, allocations: 49.44 MB / 349.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007386/0.08853, allocations: 7.982 MB / 357.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.168/0.2565, allocations: 19.63 MB / 377 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.2581, allocations: 35.28 kB / 377 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002393/0.2605, allocations: 0.7607 MB / 377.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005174/0.2657, allocations: 1.492 MB / 379.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003966/0.2697, allocations: 1.12 MB / 380.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00457/0.2743, allocations: 3.183 MB / 383.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.2746, allocations: 221.8 kB / 383.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006691/0.2753, allocations: 0.5336 MB / 384.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005041/0.2758, allocations: 0.5515 MB / 384.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.276, allocations: 26.81 kB / 384.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004581/0.2805, allocations: 1.434 MB / 386.4 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.2807, allocations: 158.4 kB / 386.5 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005035/0.2812, allocations: 0.6624 MB / 387.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002373/0.2836, allocations: 2.153 MB / 389.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2836, allocations: 1.5 kB / 389.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.2836, allocations: 0 / 389.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.2836, allocations: 4 kB / 389.3 MB, free: 5.895 MB / 302.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.002588/0.2862, allocations: 2.01 MB / 391.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2863, allocations: 13.28 kB / 391.4 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.2865, allocations: 192.2 kB / 391.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.288, allocations: 1.366 MB / 392.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.288, allocations: 19.5 kB / 392.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.719e-05/0.2881, allocations: 25.59 kB / 393 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008228/0.289, allocations: 438.2 kB / 393.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.289, allocations: 0 / 393.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.289, allocations: 14.81 kB / 393.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.2891, allocations: 5.906 kB / 393.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2901, allocations: 478.9 kB / 393.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.2924, allocations: 1.626 MB / 395.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/0.2932, allocations: 368.7 kB / 395.9 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006555/0.2939, allocations: 410.5 kB / 396.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.3072, allocations: 15.19 MB / 411.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006064/0.3079, allocations: 267.1 kB / 411.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.3079, allocations: 0 / 411.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002006/0.3099, allocations: 0.8347 MB / 412.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.31, allocations: 69.61 kB / 412.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.3116, allocations: 1.451 MB / 414.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.3116, allocations: 37.7 kB / 414.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005649/0.3122, allocations: 0.7162 MB / 414.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.137e-05/0.3123, allocations: 96.94 kB / 414.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.3125, allocations: 126 kB / 415 MB, free: 14.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3126, allocations: 329.9 kB / 415.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.313, allocations: 159 kB / 415.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.3136, allocations: 355.4 kB / 415.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.3146, allocations: 0.5398 MB / 416.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3146, allocations: 7.938 kB / 416.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001399/0.316, allocations: 0.7502 MB / 417.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.316, allocations: 8 kB / 417.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-05/0.3161, allocations: 44 kB / 417.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002936/0.3164, allocations: 132.8 kB / 417.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.3168, allocations: 112.1 kB / 417.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006344/0.3175, allocations: 0.6811 MB / 418.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.318, allocations: 63.47 kB / 418.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/0.3181, allocations: 36 kB / 418.2 MB, free: 11.2 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.0003747/0.3185, allocations: 285.1 kB / 418.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.3187, allocations: 185.8 kB / 418.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.3205, allocations: 0.7486 MB / 419.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3206, allocations: 0 / 419.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3206, allocations: 0 / 419.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3206, allocations: 0 / 419.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.3227, allocations: 1.315 MB / 420.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.583e-05/0.3228, allocations: 32 kB / 420.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.323, allocations: 52 kB / 420.8 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002275/0.3233, allocations: 124.8 kB / 421 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.3233, allocations: 19.98 kB / 421 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005208/0.3238, allocations: 0.6753 MB / 421.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3238, allocations: 4.062 kB / 421.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3251, allocations: 0.704 MB / 422.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/0.3254, allocations: 274.8 kB / 422.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.3256, allocations: 8 kB / 422.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.326, allocations: 31.95 kB / 422.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.3261, allocations: 39.95 kB / 422.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.3262, allocations: 20 kB / 422.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001079/0.3273, allocations: 0.9571 MB / 423.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3273, allocations: 0 / 423.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008868/0.3282, allocations: 335.8 kB / 424 MB, free: 5.246 MB / 334.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.0007762/0.329, allocations: 0.58 MB / 424.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3301, allocations: 0.5116 MB / 425.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3301, allocations: 0 / 425.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006133/0.3308, allocations: 301.9 kB / 425.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.332, allocations: 294.7 kB / 425.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.3353, allocations: 2.636 MB / 428.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.3359, allocations: 1.141 MB / 429.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006245/0.3365, allocations: 207.9 kB / 429.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3367, allocations: 83.44 kB / 429.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3367, allocations: 4 kB / 429.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of Templates: time 0.0284/0.3651, allocations: 18.99 MB / 448.7 MB, free: 12.69 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches