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.001344/0.001344, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001204/0.001204, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2547, allocations: 49.45 MB / 401.4 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008953/0.2637, allocations: 8.016 MB / 409.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.2825, allocations: 19.44 MB / 428.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009739/0.2835, allocations: 59.5 kB / 428.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002038/0.2856, allocations: 0.8566 MB / 429.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004448/0.29, allocations: 1.793 MB / 431.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003406/0.2934, allocations: 1.342 MB / 432.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004406/0.2979, allocations: 3.253 MB / 436.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.2982, allocations: 216.6 kB / 436.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006508/0.2989, allocations: 0.5716 MB / 436.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.2995, allocations: 0.559 MB / 437.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.93e-05/0.2996, allocations: 44 kB / 437.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.3028, allocations: 1.44 MB / 439 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.3029, allocations: 166.8 kB / 439.2 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005322/0.3035, allocations: 0.6715 MB / 439.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002546/0.306, allocations: 2.219 MB / 442 MB, free: 15.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.306, allocations: 0 / 442 MB, free: 15.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.306, allocations: 4 kB / 442 MB, free: 15.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.3061, allocations: 0 / 442 MB, free: 15.92 MB / 366.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.002594/0.3087, allocations: 2 MB / 444 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.3087, allocations: 12.03 kB / 444.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.3089, allocations: 193.7 kB / 444.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/0.3105, allocations: 1.354 MB / 445.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.3105, allocations: 24.56 kB / 445.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.3106, allocations: 24 kB / 445.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008748/0.3114, allocations: 437.1 kB / 446.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3115, allocations: 3.938 kB / 446.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.3115, allocations: 16 kB / 446.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3115, allocations: 8 kB / 446.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3126, allocations: 474.1 kB / 446.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.315, allocations: 1.611 MB / 448.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008974/0.3159, allocations: 375.2 kB / 448.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006871/0.3166, allocations: 414.3 kB / 448.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.3299, allocations: 15.22 MB / 464.2 MB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006156/0.3306, allocations: 255.1 kB / 464.4 MB, free: 7.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.134e-06/0.3306, allocations: 0 / 464.4 MB, free: 7.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002014/0.3326, allocations: 0.833 MB / 465.2 MB, free: 6.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3327, allocations: 67.27 kB / 465.3 MB, free: 6.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.3342, allocations: 1.459 MB / 466.8 MB, free: 4.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3343, allocations: 33.7 kB / 466.8 MB, free: 4.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.3348, allocations: 0.7148 MB / 467.5 MB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/0.3349, allocations: 94.73 kB / 467.6 MB, free: 3.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.3351, allocations: 126 kB / 467.7 MB, free: 3.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3352, allocations: 326 kB / 468.1 MB, free: 3.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004522/0.3356, allocations: 165 kB / 468.2 MB, free: 3.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.3362, allocations: 359.4 kB / 468.6 MB, free: 2.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009968/0.3372, allocations: 0.5255 MB / 469.1 MB, free: 2.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3372, allocations: 0 / 469.1 MB, free: 2.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001394/0.3386, allocations: 0.7509 MB / 469.8 MB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3387, allocations: 8 kB / 469.8 MB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.635e-05/0.3387, allocations: 44 kB / 469.9 MB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.339, allocations: 137.5 kB / 470 MB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.3395, allocations: 103.9 kB / 470.1 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005608/0.34, allocations: 0.685 MB / 470.8 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.3406, allocations: 75.5 kB / 470.9 MB, free: 444 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.634e-05/0.3407, allocations: 32 kB / 470.9 MB, free: 412 kB / 382.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.0003573/0.341, allocations: 275.1 kB / 471.2 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3412, allocations: 193.8 kB / 471.4 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.343, allocations: 0.7432 MB / 472.1 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.343, allocations: 4 kB / 472.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.343, allocations: 0 / 472.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.343, allocations: 0 / 472.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.345, allocations: 1.312 MB / 473.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-05/0.3451, allocations: 40 kB / 473.5 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.3453, allocations: 43.89 kB / 473.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002162/0.3456, allocations: 120.8 kB / 473.6 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.3456, allocations: 27.92 kB / 473.7 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005029/0.3461, allocations: 0.6618 MB / 474.3 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3461, allocations: 0 / 474.3 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.3474, allocations: 0.7127 MB / 475 MB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.3477, allocations: 282.7 kB / 475.3 MB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.3479, allocations: 12 kB / 475.3 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.3483, allocations: 35.89 kB / 475.4 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3484, allocations: 39.91 kB / 475.4 MB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.386e-05/0.3485, allocations: 23.98 kB / 475.4 MB, free: 11.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001086/0.3496, allocations: 0.961 MB / 476.4 MB, free: 10.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3496, allocations: 0 / 476.4 MB, free: 10.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007909/0.3504, allocations: 327.8 kB / 476.7 MB, free: 10.42 MB / 398.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.0007613/0.3511, allocations: 0.5771 MB / 477.3 MB, free: 9.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.3524, allocations: 0.5238 MB / 477.8 MB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3524, allocations: 4.125 kB / 477.8 MB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006348/0.353, allocations: 291.2 kB / 478.1 MB, free: 9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.3543, allocations: 307 kB / 478.4 MB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.3574, allocations: 2.248 MB / 480.6 MB, free: 6.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.3579, allocations: 1.145 MB / 481.8 MB, free: 5.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3581, allocations: 91.44 kB / 481.9 MB, free: 5.141 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3581, allocations: 0 / 481.9 MB, free: 5.141 MB / 398.1 MB Notification: Performance of Templates: time 0.03001/0.3881, allocations: 25.88 MB / 0.4959 GB, free: 11.31 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time