Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001523/0.001523, allocations: 80.02 kB / 20.49 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001549/0.001549, allocations: 168.5 kB / 23.75 MB, free: 4.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 177.1 MB / 204 MB, free: 9.207 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 61.23 kB / 324.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1212, allocations: 53.38 MB / 378.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008583/0.1298, allocations: 6.933 MB / 385.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0211/0.1509, allocations: 16.7 MB / 401.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.152, allocations: 98.88 kB / 401.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.1544, allocations: 0.7634 MB / 402.6 MB, free: 7.156 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006424/0.1608, allocations: 1.816 MB / 404.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004615/0.1654, allocations: 1.321 MB / 405.8 MB, free: 4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005869/0.1713, allocations: 3.326 MB / 409.1 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003506/0.1717, allocations: 124.8 kB / 409.2 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.1728, allocations: 0.8602 MB / 410.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006965/0.1735, allocations: 0.5356 MB / 410.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.961e-05/0.1736, allocations: 40 kB / 410.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003199/0.1768, allocations: 1.178 MB / 411.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.177, allocations: 166.8 kB / 412 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006165/0.1776, allocations: 0.5045 MB / 412.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003685/0.1813, allocations: 2.233 MB / 414.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.1813, allocations: 0 / 414.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1813, allocations: 0 / 414.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.165e-05/0.1813, allocations: 8 kB / 414.7 MB, free: 10.97 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.003595/0.1849, allocations: 1.991 MB / 416.7 MB, free: 8.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.185, allocations: 11.98 kB / 416.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.1853, allocations: 206.7 kB / 416.9 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.1872, allocations: 1.257 MB / 418.2 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.1873, allocations: 24.66 kB / 418.2 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.438e-05/0.1873, allocations: 24 kB / 418.2 MB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009275/0.1883, allocations: 437.8 kB / 418.7 MB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1883, allocations: 7.938 kB / 418.7 MB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.1883, allocations: 8 kB / 418.7 MB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1883, allocations: 8 kB / 418.7 MB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.1894, allocations: 482.3 kB / 419.2 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002714/0.1921, allocations: 1.421 MB / 420.6 MB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000929/0.1931, allocations: 347.4 kB / 420.9 MB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007446/0.1938, allocations: 370 kB / 421.3 MB, free: 4.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.2074, allocations: 6.988 MB / 428.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006654/0.2081, allocations: 251.2 kB / 428.5 MB, free: 12.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.955e-06/0.2081, allocations: 0 / 428.5 MB, free: 12.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002188/0.2102, allocations: 0.7665 MB / 429.3 MB, free: 12.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.2103, allocations: 67.33 kB / 429.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.2122, allocations: 1.463 MB / 430.8 MB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.2123, allocations: 33.7 kB / 430.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006901/0.213, allocations: 0.7232 MB / 431.6 MB, free: 9.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.2131, allocations: 103.2 kB / 431.7 MB, free: 9.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.2133, allocations: 134 kB / 431.8 MB, free: 9.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2134, allocations: 322 kB / 432.1 MB, free: 9.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.2139, allocations: 168.8 kB / 432.3 MB, free: 8.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.2145, allocations: 358.9 kB / 432.6 MB, free: 8.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2156, allocations: 0.5332 MB / 433.2 MB, free: 7.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.2156, allocations: 4 kB / 433.2 MB, free: 7.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00155/0.2171, allocations: 0.7559 MB / 433.9 MB, free: 7.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.2171, allocations: 11.12 kB / 433.9 MB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.069e-05/0.2172, allocations: 40 kB / 434 MB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.2175, allocations: 129.4 kB / 434.1 MB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.218, allocations: 107.8 kB / 434.2 MB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007011/0.2187, allocations: 0.6889 MB / 434.9 MB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005532/0.2192, allocations: 75.58 kB / 435 MB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.2193, allocations: 32 kB / 435 MB, free: 6 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.0004266/0.2197, allocations: 279.7 kB / 435.3 MB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/0.2199, allocations: 202.7 kB / 435.5 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.2217, allocations: 0.7308 MB / 436.2 MB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.2217, allocations: 4 kB / 436.2 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2217, allocations: 0 / 436.2 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.2217, allocations: 3.984 kB / 436.2 MB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.224, allocations: 1.196 MB / 437.4 MB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.464e-05/0.224, allocations: 32 kB / 437.4 MB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.2243, allocations: 55.88 kB / 437.5 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002511/0.2245, allocations: 124.8 kB / 437.6 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.2246, allocations: 19.98 kB / 437.6 MB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006328/0.2252, allocations: 0.6656 MB / 438.3 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2252, allocations: 0 / 438.3 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.2266, allocations: 0.7225 MB / 439 MB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004145/0.227, allocations: 212.6 kB / 439.2 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.2271, allocations: 0 / 439.2 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004251/0.2275, allocations: 31.95 kB / 439.3 MB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.2277, allocations: 39.95 kB / 439.3 MB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/0.2277, allocations: 27.98 kB / 439.3 MB, free: 1.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001283/0.229, allocations: 0.9532 MB / 440.3 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.229, allocations: 4 kB / 440.3 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009066/0.2299, allocations: 331.6 kB / 440.6 MB, free: 248 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.0008656/0.2308, allocations: 0.5731 MB / 441.2 MB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.2321, allocations: 0.5005 MB / 441.7 MB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2321, allocations: 0 / 441.7 MB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006589/0.2327, allocations: 271.2 kB / 441.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.234, allocations: 311.2 kB / 442.2 MB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.2375, allocations: 2.26 MB / 444.5 MB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.238, allocations: 0.5666 MB / 445.1 MB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005379/0.2386, allocations: 199.9 kB / 445.3 MB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2387, allocations: 88.48 kB / 445.4 MB, free: 11.37 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2387, allocations: 4 kB / 445.4 MB, free: 11.37 MB / 414.1 MB Notification: Performance of Templates: time 0.03709/0.2758, allocations: 19.5 MB / 464.9 MB, free: 8.082 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.279173742979765]