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.00198/0.00198, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002333/0.002333, allocations: 210.7 kB / 23.73 MB, free: 4.387 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.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.001604/0.001604, allocations: 47.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2529, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008622/0.2615, allocations: 6.917 MB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.2826, allocations: 16.71 MB / 455.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009781/0.2835, allocations: 98.88 kB / 455.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.2856, allocations: 0.7535 MB / 456 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005355/0.291, allocations: 1.819 MB / 457.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004052/0.2951, allocations: 1.324 MB / 459.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006127/0.3012, allocations: 3.311 MB / 462.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003889/0.3016, allocations: 128.8 kB / 462.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009837/0.3026, allocations: 0.595 MB / 463.2 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007632/0.3033, allocations: 0.559 MB / 463.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.562e-05/0.3034, allocations: 44 kB / 463.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.3069, allocations: 1.21 MB / 465 MB, free: 5.105 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.3071, allocations: 170.8 kB / 465.2 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005961/0.3077, allocations: 0.4967 MB / 465.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003269/0.3109, allocations: 2.241 MB / 467.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3109, allocations: 0 / 467.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3109, allocations: 0 / 467.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.311, allocations: 0 / 467.9 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.003463/0.3144, allocations: 1.994 MB / 469.9 MB, free: 152 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.3145, allocations: 12.03 kB / 469.9 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.3148, allocations: 198.8 kB / 470.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.3169, allocations: 1.26 MB / 471.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.3169, allocations: 16.66 kB / 471.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/0.317, allocations: 32 kB / 471.4 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009826/0.318, allocations: 433.8 kB / 471.9 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.318, allocations: 3.938 kB / 471.9 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.3181, allocations: 12 kB / 471.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.3181, allocations: 15.98 kB / 471.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.3192, allocations: 470.4 kB / 472.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.3222, allocations: 1.421 MB / 473.8 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009886/0.3232, allocations: 341.4 kB / 474.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007478/0.324, allocations: 369.9 kB / 474.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/0.3382, allocations: 7.004 MB / 481.5 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006924/0.3389, allocations: 255.1 kB / 481.7 MB, free: 3.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.514e-06/0.3389, allocations: 0 / 481.7 MB, free: 3.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002248/0.3411, allocations: 0.7703 MB / 482.5 MB, free: 3.211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.3412, allocations: 59.34 kB / 482.6 MB, free: 3.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.3431, allocations: 1.463 MB / 484 MB, free: 1.641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.3431, allocations: 33.7 kB / 484 MB, free: 1.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007092/0.3439, allocations: 0.7232 MB / 484.8 MB, free: 0.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.344, allocations: 103.2 kB / 484.9 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.3442, allocations: 130 kB / 485 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3443, allocations: 326 kB / 485.3 MB, free: 324 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004584/0.3448, allocations: 164.9 kB / 485.5 MB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006199/0.3454, allocations: 354.8 kB / 485.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.3465, allocations: 0.5416 MB / 486.4 MB, free: 15.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3465, allocations: 0 / 486.4 MB, free: 15.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001544/0.348, allocations: 0.7559 MB / 487.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.348, allocations: 8 kB / 487.1 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.724e-05/0.3481, allocations: 43.98 kB / 487.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003427/0.3484, allocations: 137.3 kB / 487.3 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/0.3489, allocations: 107.8 kB / 487.4 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006691/0.3495, allocations: 0.6773 MB / 488.1 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/0.3501, allocations: 71.58 kB / 488.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.419e-05/0.3502, allocations: 36 kB / 488.2 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.0003918/0.3506, allocations: 277.7 kB / 488.5 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.3508, allocations: 198.7 kB / 488.7 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.3526, allocations: 0.7347 MB / 489.4 MB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.3527, allocations: 4 kB / 489.4 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3527, allocations: 0 / 489.4 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3527, allocations: 3.984 kB / 489.4 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.3549, allocations: 1.2 MB / 490.6 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.385e-05/0.355, allocations: 39.98 kB / 490.6 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002704/0.3553, allocations: 43.95 kB / 490.7 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002613/0.3555, allocations: 128.8 kB / 490.8 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.3556, allocations: 19.98 kB / 490.8 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006551/0.3562, allocations: 0.6695 MB / 491.5 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3562, allocations: 0 / 491.5 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.3576, allocations: 0.7218 MB / 492.2 MB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004564/0.3581, allocations: 208.6 kB / 492.4 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.3582, allocations: 8 kB / 492.4 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.3587, allocations: 31.95 kB / 492.5 MB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3588, allocations: 39.89 kB / 492.5 MB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.838e-05/0.3588, allocations: 23.98 kB / 492.5 MB, free: 8.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001255/0.3601, allocations: 0.961 MB / 493.5 MB, free: 7.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3601, allocations: 4 kB / 493.5 MB, free: 7.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008833/0.361, allocations: 331.6 kB / 493.8 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.0009065/0.3619, allocations: 0.5692 MB / 494.4 MB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3632, allocations: 0.4888 MB / 494.9 MB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3632, allocations: 4 kB / 494.9 MB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006848/0.3639, allocations: 288.6 kB / 495.2 MB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.3651, allocations: 310.8 kB / 495.5 MB, free: 5.762 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.3687, allocations: 2.24 MB / 497.7 MB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005744/0.3692, allocations: 0.5744 MB / 498.3 MB, free: 2.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005306/0.3698, allocations: 203.9 kB / 498.5 MB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.3699, allocations: 87.44 kB / 498.6 MB, free: 2.574 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3699, allocations: 4 kB / 498.6 MB, free: 2.57 MB / 398.1 MB Notification: Performance of Templates: time 0.03646/0.4064, allocations: 21.53 MB / 0.5079 GB, free: 13.28 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 -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/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_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: 5.1793161439709365]