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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.001201, allocations: 188.9 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 101.4 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 39.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2641, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006/0.2702, allocations: 7.998 MB / 407.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.2858, allocations: 19.63 MB / 427.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.2871, allocations: 31.75 kB / 427.1 MB, free: 5.605 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.2892, allocations: 0.7646 MB / 427.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005614/0.2948, allocations: 1.485 MB / 429.4 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004271/0.2991, allocations: 1.117 MB / 430.5 MB, free: 2.223 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004757/0.3039, allocations: 3.214 MB / 433.7 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.3043, allocations: 213 kB / 433.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000608/0.3049, allocations: 0.5363 MB / 434.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005047/0.3054, allocations: 0.555 MB / 435 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.3055, allocations: 28 kB / 435 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00388/0.3094, allocations: 1.432 MB / 436.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.3096, allocations: 158.8 kB / 436.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006056/0.3102, allocations: 0.6598 MB / 437.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002641/0.3128, allocations: 2.153 MB / 439.4 MB, free: 9.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3129, allocations: 0 / 439.4 MB, free: 9.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3129, allocations: 4 kB / 439.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3129, allocations: 0 / 439.4 MB, free: 9.227 MB / 314.7 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.003008/0.3159, allocations: 2.016 MB / 441.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3159, allocations: 8.031 kB / 441.5 MB, free: 7.141 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.3161, allocations: 193.7 kB / 441.7 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.3181, allocations: 1.354 MB / 443 MB, free: 5.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3181, allocations: 20.56 kB / 443 MB, free: 5.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.03e-05/0.3182, allocations: 31.89 kB / 443.1 MB, free: 5.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008783/0.3191, allocations: 437.2 kB / 443.5 MB, free: 5.039 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.3191, allocations: 3.938 kB / 443.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.3191, allocations: 12 kB / 443.5 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.3192, allocations: 7.984 kB / 443.5 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.3202, allocations: 482 kB / 444 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.3228, allocations: 1.615 MB / 445.6 MB, free: 2.859 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008795/0.3237, allocations: 371.3 kB / 446 MB, free: 2.488 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007102/0.3244, allocations: 409.9 kB / 446.4 MB, free: 2.086 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01545/0.3399, allocations: 15.2 MB / 461.6 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006284/0.3406, allocations: 263 kB / 461.8 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.427e-06/0.3406, allocations: 3.938 kB / 461.8 MB, free: 0.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001993/0.3426, allocations: 0.834 MB / 462.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.3426, allocations: 63.33 kB / 462.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.3443, allocations: 1.463 MB / 464.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.629e-05/0.3443, allocations: 29.7 kB / 464.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005548/0.3449, allocations: 0.7148 MB / 464.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.097e-05/0.345, allocations: 102.7 kB / 465 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.3452, allocations: 130 kB / 465.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3453, allocations: 322 kB / 465.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.3457, allocations: 165 kB / 465.6 MB, free: 12.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.3463, allocations: 367.4 kB / 466 MB, free: 12.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.3473, allocations: 0.5337 MB / 466.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.3474, allocations: 4 kB / 466.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001475/0.3488, allocations: 0.745 MB / 467.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3489, allocations: 11.98 kB / 467.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.958e-05/0.3489, allocations: 44 kB / 467.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003301/0.3493, allocations: 133.2 kB / 467.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004089/0.3497, allocations: 107.8 kB / 467.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006538/0.3504, allocations: 0.6812 MB / 468.2 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.3509, allocations: 67.45 kB / 468.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/0.351, allocations: 36 kB / 468.3 MB, free: 9.699 MB / 346.7 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.0004099/0.3514, allocations: 282.4 kB / 468.6 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.3516, allocations: 189.7 kB / 468.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.3536, allocations: 0.7471 MB / 469.5 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3536, allocations: 4 kB / 469.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3536, allocations: 0 / 469.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3536, allocations: 3.984 kB / 469.6 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002287/0.3559, allocations: 1.307 MB / 470.9 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.604e-05/0.356, allocations: 39.94 kB / 470.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.3562, allocations: 48.02 kB / 470.9 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002376/0.3565, allocations: 120.8 kB / 471.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.3565, allocations: 19.94 kB / 471.1 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005625/0.3571, allocations: 0.6694 MB / 471.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3571, allocations: 4.031 kB / 471.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.3594, allocations: 1.767 MB / 473.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.3599, allocations: 274.9 kB / 473.8 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.3601, allocations: 15.92 kB / 473.8 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.3606, allocations: 23.97 kB / 473.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.3607, allocations: 39.95 kB / 473.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.681e-05/0.3608, allocations: 20 kB / 473.9 MB, free: 3.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001209/0.362, allocations: 0.961 MB / 474.8 MB, free: 2.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.362, allocations: 0 / 474.8 MB, free: 2.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001098/0.3631, allocations: 335.8 kB / 475.2 MB, free: 2.621 MB / 346.7 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.001037/0.3641, allocations: 0.5813 MB / 475.8 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.3657, allocations: 0.5214 MB / 476.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3657, allocations: 0 / 476.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006838/0.3664, allocations: 287.2 kB / 476.6 MB, free: 1.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.3678, allocations: 299 kB / 476.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.3718, allocations: 2.821 MB / 479.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006295/0.3724, allocations: 1.157 MB / 480.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007046/0.3731, allocations: 203.9 kB / 481 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.3733, allocations: 83.44 kB / 481.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 9.51e-07/0.3733, allocations: 0 / 481.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Templates: time 0.03249/0.4058, allocations: 19.31 MB / 0.4887 GB, free: 9.41 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches