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.001308/0.001308, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001376/0.001376, allocations: 214.8 kB / 24.48 MB, free: 3.941 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.424/1.424, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.001546/0.001546, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2195, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008302/0.2278, allocations: 6.925 MB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.2481, allocations: 16.7 MB / 455.9 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008542/0.249, allocations: 98.88 kB / 456 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001994/0.251, allocations: 0.7578 MB / 456.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004781/0.2558, allocations: 1.823 MB / 458.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003685/0.2594, allocations: 1.313 MB / 459.9 MB, free: 11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004825/0.2643, allocations: 3.314 MB / 463.3 MB, free: 7.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.2646, allocations: 136.8 kB / 463.4 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007592/0.2653, allocations: 0.5873 MB / 464 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006551/0.266, allocations: 0.559 MB / 464.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.2661, allocations: 44 kB / 464.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.269, allocations: 1.21 MB / 465.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.2691, allocations: 170.8 kB / 465.9 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005181/0.2697, allocations: 0.5045 MB / 466.5 MB, free: 4.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.2725, allocations: 2.233 MB / 468.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2725, allocations: 0 / 468.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2725, allocations: 0 / 468.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.2726, allocations: 0 / 468.7 MB, free: 2.191 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.003079/0.2756, allocations: 2.002 MB / 470.7 MB, free: 148 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.2757, allocations: 8.031 kB / 470.7 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.2759, allocations: 206.9 kB / 470.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/0.2779, allocations: 1.253 MB / 472.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2779, allocations: 16.66 kB / 472.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.653e-05/0.278, allocations: 28 kB / 472.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009381/0.279, allocations: 437.8 kB / 472.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.279, allocations: 3.75 kB / 472.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.616e-05/0.279, allocations: 12 kB / 472.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.279, allocations: 15.92 kB / 472.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.2802, allocations: 474.4 kB / 473.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.2829, allocations: 1.421 MB / 474.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009046/0.2838, allocations: 339.4 kB / 474.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007503/0.2846, allocations: 365.9 kB / 475.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01395/0.2985, allocations: 7 MB / 482.2 MB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006509/0.2992, allocations: 275 kB / 482.5 MB, free: 3.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.174e-06/0.2992, allocations: 0 / 482.5 MB, free: 3.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002063/0.3013, allocations: 0.7625 MB / 483.3 MB, free: 3.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.3013, allocations: 63.34 kB / 483.3 MB, free: 3.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/0.303, allocations: 1.459 MB / 484.8 MB, free: 1.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.3031, allocations: 37.7 kB / 484.8 MB, free: 1.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/0.3037, allocations: 0.7271 MB / 485.5 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.3038, allocations: 107.1 kB / 485.6 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.304, allocations: 126 kB / 485.8 MB, free: 0.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3042, allocations: 326 kB / 486.1 MB, free: 308 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004478/0.3046, allocations: 160.9 kB / 486.2 MB, free: 148 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006301/0.3052, allocations: 358.8 kB / 486.6 MB, free: 15.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.3063, allocations: 0.5339 MB / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3063, allocations: 0 / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001458/0.3077, allocations: 0.7523 MB / 487.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3078, allocations: 8 kB / 487.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.275e-05/0.3078, allocations: 40 kB / 487.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003194/0.3082, allocations: 140.7 kB / 488.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004214/0.3086, allocations: 108.1 kB / 488.2 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006635/0.3092, allocations: 0.6773 MB / 488.8 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005257/0.3098, allocations: 75.58 kB / 488.9 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.3098, allocations: 32 kB / 489 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.0003644/0.3102, allocations: 269.7 kB / 489.2 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.3104, allocations: 198.7 kB / 489.4 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/0.3122, allocations: 0.7347 MB / 490.1 MB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3122, allocations: 4 kB / 490.2 MB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3122, allocations: 7.984 kB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3122, allocations: 0 / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.3144, allocations: 1.207 MB / 491.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.293e-05/0.3144, allocations: 35.98 kB / 491.4 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.3147, allocations: 47.95 kB / 491.4 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002525/0.3149, allocations: 120.8 kB / 491.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.315, allocations: 16 kB / 491.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006143/0.3156, allocations: 0.6734 MB / 492.3 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3156, allocations: 0 / 492.3 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.3169, allocations: 0.7219 MB / 493 MB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/0.3174, allocations: 208.6 kB / 493.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.3175, allocations: 11.98 kB / 493.2 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004217/0.318, allocations: 23.97 kB / 493.2 MB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3181, allocations: 39.95 kB / 493.3 MB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.917e-05/0.3181, allocations: 23.98 kB / 493.3 MB, free: 8.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.3193, allocations: 0.961 MB / 494.2 MB, free: 7.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3193, allocations: 0 / 494.2 MB, free: 7.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008085/0.3201, allocations: 335.5 kB / 494.6 MB, free: 7.445 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.0008205/0.3209, allocations: 0.5694 MB / 495.1 MB, free: 6.867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.3222, allocations: 0.5005 MB / 495.6 MB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3222, allocations: 0 / 495.6 MB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006509/0.3228, allocations: 280.7 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.001193/0.324, allocations: 307 kB / 496.2 MB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.3273, allocations: 2.244 MB / 498.5 MB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/0.3279, allocations: 0.5744 MB / 499 MB, free: 2.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005019/0.3284, allocations: 203.9 kB / 499.2 MB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3285, allocations: 87.44 kB / 499.3 MB, free: 2.574 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3285, allocations: 0 / 499.3 MB, free: 2.574 MB / 398.1 MB Notification: Performance of Templates: time 0.03475/0.3633, allocations: 21.53 MB / 0.5086 GB, free: 13.29 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 gbode -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.928595773002598]