Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 74.19 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 158.3 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.421/1.421, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 55.73 kB / 325.5 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.0907, allocations: 53.35 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008268/0.09897, allocations: 6.919 MB / 385.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02065/0.1196, allocations: 16.69 MB / 402.5 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008745/0.1205, allocations: 94.88 kB / 402.6 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.1225, allocations: 0.7672 MB / 403.4 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004955/0.1275, allocations: 1.816 MB / 405.2 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003985/0.1315, allocations: 1.325 MB / 406.5 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005408/0.1369, allocations: 3.318 MB / 409.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002882/0.1372, allocations: 124.8 kB / 410 MB, free: 468 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000781/0.1379, allocations: 0.5873 MB / 410.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007454/0.1387, allocations: 0.5433 MB / 411.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1388, allocations: 43.94 kB / 411.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.1418, allocations: 1.167 MB / 412.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.142, allocations: 170.8 kB / 412.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005585/0.1425, allocations: 0.5084 MB / 413 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002949/0.1455, allocations: 2.245 MB / 415.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1455, allocations: 0 / 415.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1455, allocations: 0 / 415.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.1455, allocations: 0 / 415.2 MB, free: 11.18 MB / 382.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.003112/0.1486, allocations: 1.994 MB / 417.2 MB, free: 9.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1487, allocations: 12.03 kB / 417.2 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.1489, allocations: 202.7 kB / 417.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.1508, allocations: 1.253 MB / 418.7 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.1509, allocations: 24.64 kB / 418.7 MB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.1509, allocations: 27.94 kB / 418.7 MB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000943/0.1519, allocations: 433.9 kB / 419.1 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1519, allocations: 3.938 kB / 419.1 MB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/0.1519, allocations: 11.98 kB / 419.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.152, allocations: 12 kB / 419.2 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.1531, allocations: 474.3 kB / 419.6 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.1558, allocations: 1.425 MB / 421.1 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009522/0.1567, allocations: 339.4 kB / 421.4 MB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007622/0.1575, allocations: 374 kB / 421.8 MB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.1708, allocations: 6.988 MB / 428.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006735/0.1714, allocations: 263.8 kB / 429 MB, free: 12.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 1.894e-06/0.1714, allocations: 0 / 429 MB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002153/0.1736, allocations: 0.7587 MB / 429.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.1737, allocations: 63.34 kB / 429.8 MB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/0.1755, allocations: 1.467 MB / 431.3 MB, free: 10.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.1756, allocations: 29.7 kB / 431.3 MB, free: 10.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007068/0.1763, allocations: 0.7271 MB / 432 MB, free: 9.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.1764, allocations: 107.2 kB / 432.2 MB, free: 9.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.1765, allocations: 126 kB / 432.3 MB, free: 9.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1767, allocations: 326 kB / 432.6 MB, free: 9.312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.1772, allocations: 156.9 kB / 432.7 MB, free: 9.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000641/0.1778, allocations: 362.8 kB / 433.1 MB, free: 8.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.179, allocations: 0.5298 MB / 433.6 MB, free: 8.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.179, allocations: 4 kB / 433.6 MB, free: 8.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001559/0.1805, allocations: 0.7526 MB / 434.4 MB, free: 7.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1805, allocations: 15.75 kB / 434.4 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.055e-05/0.1806, allocations: 44 kB / 434.4 MB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003196/0.1809, allocations: 144.7 kB / 434.6 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.1814, allocations: 107.8 kB / 434.7 MB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006959/0.1821, allocations: 0.6773 MB / 435.4 MB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.1826, allocations: 71.59 kB / 435.4 MB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.738e-05/0.1827, allocations: 40.06 kB / 435.5 MB, free: 6.207 MB / 398.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.0003952/0.1831, allocations: 269.6 kB / 435.7 MB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.1833, allocations: 202.7 kB / 435.9 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/0.1852, allocations: 0.7349 MB / 436.7 MB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1852, allocations: 0 / 436.7 MB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1852, allocations: 0 / 436.7 MB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1852, allocations: 4 kB / 436.7 MB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.1875, allocations: 1.196 MB / 437.9 MB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.646e-05/0.1875, allocations: 36 kB / 437.9 MB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1878, allocations: 47.89 kB / 438 MB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.188, allocations: 124.9 kB / 438.1 MB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/0.1881, allocations: 20 kB / 438.1 MB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000637/0.1887, allocations: 0.6732 MB / 438.8 MB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1887, allocations: 128 / 438.8 MB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.1901, allocations: 0.7299 MB / 439.5 MB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004484/0.1905, allocations: 208.6 kB / 439.7 MB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.1907, allocations: 8 kB / 439.7 MB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.1911, allocations: 23.97 kB / 439.7 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.1912, allocations: 47.94 kB / 439.8 MB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.517e-05/0.1913, allocations: 20 kB / 439.8 MB, free: 1.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.1925, allocations: 0.9571 MB / 440.8 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1925, allocations: 0 / 440.8 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008725/0.1934, allocations: 335.5 kB / 441.1 MB, free: 456 kB / 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.0008404/0.1942, allocations: 0.581 MB / 441.7 MB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.1956, allocations: 0.4883 MB / 442.2 MB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1956, allocations: 0 / 442.2 MB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006885/0.1963, allocations: 287.1 kB / 442.4 MB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.1976, allocations: 306.8 kB / 442.7 MB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003522/0.2011, allocations: 2.264 MB / 445 MB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.2017, allocations: 0.5589 MB / 445.6 MB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005276/0.2022, allocations: 203.9 kB / 445.8 MB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.2023, allocations: 88.5 kB / 445.8 MB, free: 11.56 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2023, allocations: 3.938 kB / 445.8 MB, free: 11.56 MB / 414.1 MB Notification: Performance of Templates: time 0.03445/0.2368, allocations: 19.49 MB / 465.3 MB, free: 8.305 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.983424845035188]