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.001586/0.001586, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001915/0.001915, allocations: 191 kB / 18 MB, free: 4.977 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 43.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2776, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007666/0.2853, allocations: 8.026 MB / 408.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01966/0.305, allocations: 19.43 MB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.3063, allocations: 63.44 kB / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.3086, allocations: 0.8566 MB / 429.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004209/0.3128, allocations: 1.817 MB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002903/0.3158, allocations: 1.346 MB / 432.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004298/0.3201, allocations: 3.245 MB / 435.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003515/0.3204, allocations: 228.6 kB / 435.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.3211, allocations: 0.5678 MB / 436.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005379/0.3216, allocations: 0.5628 MB / 436.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.112e-05/0.3217, allocations: 44 kB / 436.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003235/0.325, allocations: 1.443 MB / 438.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.3251, allocations: 162.9 kB / 438.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005936/0.3257, allocations: 0.6793 MB / 439.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.3284, allocations: 2.215 MB / 441.4 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3284, allocations: 0 / 441.4 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3284, allocations: 0 / 441.4 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.3284, allocations: 0 / 441.4 MB, free: 0 / 350.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.002657/0.3311, allocations: 2.004 MB / 443.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3312, allocations: 12.02 kB / 443.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.3314, allocations: 193.7 kB / 443.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.3331, allocations: 1.354 MB / 445 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.3331, allocations: 20.56 kB / 445 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.3332, allocations: 24 kB / 445 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008701/0.3341, allocations: 433.1 kB / 445.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3341, allocations: 3.938 kB / 445.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.3342, allocations: 12 kB / 445.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.3342, allocations: 11.98 kB / 445.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.3353, allocations: 474.1 kB / 445.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00257/0.3379, allocations: 1.611 MB / 447.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009365/0.3388, allocations: 367.4 kB / 447.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000712/0.3395, allocations: 420.4 kB / 448.3 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.3532, allocations: 15.21 MB / 463.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006082/0.3538, allocations: 259.2 kB / 463.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.174e-06/0.3538, allocations: 0 / 463.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002004/0.3559, allocations: 0.8291 MB / 464.6 MB, free: 6.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.3559, allocations: 59.34 kB / 464.6 MB, free: 6.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.3575, allocations: 1.463 MB / 466.1 MB, free: 4.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.3576, allocations: 33.7 kB / 466.1 MB, free: 4.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005557/0.3581, allocations: 0.7226 MB / 466.9 MB, free: 4.121 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.488e-05/0.3582, allocations: 86.75 kB / 467 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.3584, allocations: 126 kB / 467.1 MB, free: 3.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.3585, allocations: 326 kB / 467.4 MB, free: 3.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/0.359, allocations: 161 kB / 467.5 MB, free: 3.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.3595, allocations: 359.4 kB / 467.9 MB, free: 2.984 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3605, allocations: 0.5372 MB / 468.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3606, allocations: 0 / 468.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001393/0.362, allocations: 0.7512 MB / 469.2 MB, free: 1.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.362, allocations: 8 kB / 469.2 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.013e-05/0.362, allocations: 36 kB / 469.2 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.3624, allocations: 141.2 kB / 469.4 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.3628, allocations: 111.8 kB / 469.5 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006204/0.3634, allocations: 0.6772 MB / 470.2 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005426/0.364, allocations: 71.44 kB / 470.2 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.364, allocations: 36 kB / 470.3 MB, free: 0.4922 MB / 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.0003571/0.3644, allocations: 281.6 kB / 470.5 MB, free: 216 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.3646, allocations: 193.7 kB / 470.7 MB, free: 20 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.3663, allocations: 0.7471 MB / 471.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3664, allocations: 4 kB / 471.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3664, allocations: 0 / 471.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3664, allocations: 0 / 471.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.3686, allocations: 1.308 MB / 472.8 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.385e-05/0.3687, allocations: 36 kB / 472.8 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.369, allocations: 52 kB / 472.9 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002352/0.3692, allocations: 124.8 kB / 473 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.3692, allocations: 23.92 kB / 473 MB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006156/0.3699, allocations: 0.6656 MB / 473.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3699, allocations: 3.938 kB / 473.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.3712, allocations: 0.7126 MB / 474.4 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.3716, allocations: 274.7 kB / 474.7 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.3718, allocations: 11.98 kB / 474.7 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.3722, allocations: 23.97 kB / 474.7 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3723, allocations: 55.83 kB / 474.8 MB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.3724, allocations: 19.94 kB / 474.8 MB, free: 11.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001108/0.3735, allocations: 0.961 MB / 475.7 MB, free: 10.83 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3735, allocations: 0 / 475.7 MB, free: 10.83 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.3744, allocations: 327.8 kB / 476.1 MB, free: 10.51 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.0009458/0.3753, allocations: 0.5694 MB / 476.6 MB, free: 9.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.3766, allocations: 0.5238 MB / 477.1 MB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3766, allocations: 0 / 477.1 MB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006629/0.3773, allocations: 295.4 kB / 477.4 MB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.3786, allocations: 310.9 kB / 477.7 MB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.3821, allocations: 2.195 MB / 479.9 MB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.3828, allocations: 1.149 MB / 481.1 MB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005422/0.3834, allocations: 199.9 kB / 481.3 MB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.3835, allocations: 91.44 kB / 481.4 MB, free: 5.086 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3835, allocations: 0 / 481.4 MB, free: 5.086 MB / 398.1 MB Notification: Performance of Templates: time 0.03299/0.4165, allocations: 19.76 MB / 0.4894 GB, free: 1.465 MB / 414.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