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.001726/0.001726, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002119/0.002119, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.507/1.507, allocations: 230.5 MB / 258.1 MB, free: 7.789 MB / 206.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.002268/0.002268, allocations: 71.88 kB / 379 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2534, allocations: 53.4 MB / 432.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009154/0.2625, allocations: 6.929 MB / 439.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.2844, allocations: 16.7 MB / 456 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.2857, allocations: 90.94 kB / 456.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002339/0.288, allocations: 0.7619 MB / 456.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005765/0.2938, allocations: 1.819 MB / 458.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004383/0.2982, allocations: 1.316 MB / 460 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005414/0.3036, allocations: 3.311 MB / 463.3 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003187/0.3039, allocations: 128.8 kB / 463.4 MB, free: 7.465 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008601/0.3048, allocations: 0.5911 MB / 464 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006851/0.3054, allocations: 0.5433 MB / 464.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.3056, allocations: 40 kB / 464.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003239/0.3088, allocations: 1.167 MB / 465.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.309, allocations: 170.8 kB / 465.9 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005355/0.3095, allocations: 0.5084 MB / 466.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003068/0.3126, allocations: 2.241 MB / 468.7 MB, free: 2.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3126, allocations: 0 / 468.7 MB, free: 2.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3126, allocations: 0 / 468.7 MB, free: 2.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.3126, allocations: 0 / 468.7 MB, free: 2.188 MB / 366.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.003698/0.3163, allocations: 1.998 MB / 470.7 MB, free: 148 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3164, allocations: 11.98 kB / 470.7 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004066/0.3168, allocations: 202.9 kB / 470.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.3197, allocations: 1.249 MB / 472.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.3198, allocations: 24.64 kB / 472.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3199, allocations: 24 kB / 472.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3211, allocations: 429.9 kB / 472.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3211, allocations: 3.75 kB / 472.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.3212, allocations: 19.97 kB / 472.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.3212, allocations: 12 kB / 472.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.3223, allocations: 474.3 kB / 473.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.3251, allocations: 1.425 MB / 474.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.326, allocations: 343.3 kB / 474.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007103/0.3267, allocations: 365.8 kB / 475.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/0.3401, allocations: 7 MB / 482.2 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006851/0.3408, allocations: 256.5 kB / 482.5 MB, free: 3.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.3408, allocations: 3.938 kB / 482.5 MB, free: 3.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002096/0.3429, allocations: 0.7587 MB / 483.2 MB, free: 3.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.343, allocations: 67.34 kB / 483.3 MB, free: 3.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.3448, allocations: 1.463 MB / 484.8 MB, free: 1.641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.3448, allocations: 37.7 kB / 484.8 MB, free: 1.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006448/0.3455, allocations: 0.731 MB / 485.5 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.336e-05/0.3456, allocations: 95.22 kB / 485.6 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.3458, allocations: 126 kB / 485.7 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3459, allocations: 334 kB / 486.1 MB, free: 316 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004389/0.3463, allocations: 156.9 kB / 486.2 MB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.3469, allocations: 358.8 kB / 486.6 MB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.348, allocations: 0.5334 MB / 487.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.348, allocations: 0 / 487.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001492/0.3495, allocations: 0.7562 MB / 487.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3495, allocations: 11.94 kB / 487.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.208e-05/0.3496, allocations: 40 kB / 487.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003247/0.3499, allocations: 136.7 kB / 488 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.3503, allocations: 108 kB / 488.2 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006731/0.351, allocations: 0.6889 MB / 488.8 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.3515, allocations: 71.53 kB / 488.9 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.464e-05/0.3516, allocations: 36 kB / 488.9 MB, free: 13.21 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.0003887/0.352, allocations: 276.3 kB / 489.2 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.3522, allocations: 202.7 kB / 489.4 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.354, allocations: 0.735 MB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.354, allocations: 4 kB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.354, allocations: 4 kB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.354, allocations: 0 / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.3562, allocations: 1.204 MB / 491.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.377e-05/0.3562, allocations: 32 kB / 491.4 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.3565, allocations: 47.89 kB / 491.4 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002383/0.3567, allocations: 124.8 kB / 491.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.3567, allocations: 16 kB / 491.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006125/0.3573, allocations: 0.6773 MB / 492.3 MB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3574, allocations: 0 / 492.3 MB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3587, allocations: 0.7143 MB / 493 MB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.3591, allocations: 212.6 kB / 493.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.3593, allocations: 8 kB / 493.2 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.3597, allocations: 27.97 kB / 493.2 MB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3598, allocations: 43.94 kB / 493.3 MB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.3e-05/0.3598, allocations: 16 kB / 493.3 MB, free: 8.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.3611, allocations: 0.961 MB / 494.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3611, allocations: 0 / 494.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008372/0.3619, allocations: 343.4 kB / 494.6 MB, free: 7.441 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.0008177/0.3627, allocations: 0.58 MB / 495.1 MB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.364, allocations: 0.489 MB / 495.6 MB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.364, allocations: 4 kB / 495.6 MB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006617/0.3647, allocations: 275.2 kB / 495.9 MB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.366, allocations: 305.5 kB / 496.2 MB, free: 5.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.3695, allocations: 2.304 MB / 498.5 MB, free: 3.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.37, allocations: 0.5666 MB / 499.1 MB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.3702, allocations: 87.44 kB / 499.2 MB, free: 2.723 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3702, allocations: 4 kB / 499.2 MB, free: 2.719 MB / 398.1 MB Notification: Performance of Templates: time 0.03502/0.4052, allocations: 26.7 MB / 0.5135 GB, free: 8.07 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/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_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 9.413544078357518]