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.001072/0.001072, allocations: 93.83 kB / 16.3 MB, free: 5.992 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.0013/0.0013, allocations: 183.4 kB / 17.2 MB, free: 5.906 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.361/1.361, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002338/0.0002338, allocations: 5.219 kB / 300.7 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.08563, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006298/0.09197, allocations: 6.466 MB / 357.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.1118, allocations: 16.53 MB / 374.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.1131, allocations: 31.75 kB / 374.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.1153, allocations: 0.7313 MB / 374.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005253/0.1206, allocations: 1.569 MB / 376.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003245/0.1239, allocations: 1.122 MB / 377.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004682/0.1286, allocations: 3.066 MB / 380.6 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003443/0.1289, allocations: 209 kB / 380.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006132/0.1295, allocations: 0.4899 MB / 381.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005068/0.1301, allocations: 0.5088 MB / 381.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.1301, allocations: 24 kB / 381.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003403/0.1335, allocations: 1.417 MB / 383.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.1337, allocations: 143 kB / 383.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.134, allocations: 316.8 kB / 383.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.1354, allocations: 1.492 MB / 385.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.1354, allocations: 0 / 385.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1354, allocations: 3.938 kB / 385.2 MB, free: 9.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1354, allocations: 4 kB / 385.2 MB, free: 9.52 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.002578/0.138, allocations: 1.811 MB / 387.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1381, allocations: 8.031 kB / 387.1 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.1383, allocations: 193.7 kB / 387.2 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.1401, allocations: 1.27 MB / 388.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.1401, allocations: 20.56 kB / 388.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.1402, allocations: 35.98 kB / 388.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008509/0.141, allocations: 445.2 kB / 389 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1411, allocations: 0 / 389 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.1411, allocations: 11.98 kB / 389 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.1411, allocations: 12 kB / 389 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.1422, allocations: 0.5059 MB / 389.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.1448, allocations: 1.631 MB / 391.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/0.1457, allocations: 419.3 kB / 391.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01443/0.1601, allocations: 15.28 MB / 406.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00062/0.1608, allocations: 275.2 kB / 407.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.535e-06/0.1608, allocations: 0 / 407.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002068/0.1629, allocations: 0.8954 MB / 408 MB, free: 420 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1629, allocations: 63.34 kB / 408.1 MB, free: 344 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.1646, allocations: 1.44 MB / 409.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.1646, allocations: 33.7 kB / 409.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005699/0.1652, allocations: 0.7225 MB / 410.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.1653, allocations: 90.69 kB / 410.4 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.1653, allocations: 15.94 kB / 410.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1655, allocations: 326 kB / 410.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.1659, allocations: 181 kB / 410.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/0.1665, allocations: 376.2 kB / 411.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.1669, allocations: 224.5 kB / 411.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.167, allocations: 4 kB / 411.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001364/0.1683, allocations: 0.7939 MB / 412.3 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1684, allocations: 8 kB / 412.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.695e-05/0.1684, allocations: 40 kB / 412.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.1687, allocations: 133.4 kB / 412.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004151/0.1691, allocations: 115.8 kB / 412.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005675/0.1697, allocations: 0.685 MB / 413.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005577/0.1703, allocations: 79.45 kB / 413.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.1704, allocations: 32 kB / 413.3 MB, free: 10.89 MB / 350.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000382/0.1707, allocations: 281.7 kB / 413.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.1709, allocations: 185.8 kB / 413.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.1729, allocations: 0.7932 MB / 414.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1729, allocations: 4 kB / 414.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1729, allocations: 3.953 kB / 414.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1729, allocations: 0 / 414.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.1749, allocations: 1.343 MB / 415.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-05/0.175, allocations: 36.06 kB / 416 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.1752, allocations: 63.84 kB / 416 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002194/0.1755, allocations: 120.8 kB / 416.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.1755, allocations: 23.98 kB / 416.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004996/0.176, allocations: 0.6655 MB / 416.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.176, allocations: 0 / 416.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.1773, allocations: 0.7896 MB / 417.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003659/0.1777, allocations: 274.7 kB / 417.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.1779, allocations: 11.95 kB / 417.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.1783, allocations: 47.89 kB / 418 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1784, allocations: 39.95 kB / 418 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.1785, allocations: 23.98 kB / 418 MB, free: 6.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.1796, allocations: 0.9415 MB / 419 MB, free: 5.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1796, allocations: 0 / 419 MB, free: 5.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000812/0.1804, allocations: 331.8 kB / 419.3 MB, free: 4.727 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006801/0.1811, allocations: 0.546 MB / 419.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.1823, allocations: 0.5396 MB / 420.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1823, allocations: 0 / 420.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006546/0.183, allocations: 331.3 kB / 420.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.1841, allocations: 290.8 kB / 421 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.1873, allocations: 2.504 MB / 423.5 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1477/0.335, allocations: 1.174 MB / 424.7 MB, free: 68.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007573/0.3358, allocations: 202.1 kB / 424.9 MB, free: 68.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.3359, allocations: 85.94 kB / 424.9 MB, free: 68.08 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3359, allocations: 0 / 424.9 MB, free: 68.08 MB / 350.1 MB Notification: Performance of Templates: time 0.02692/0.3629, allocations: 17.91 MB / 442.9 MB, free: 61.2 MB / 350.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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches