Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002091/0.002091, allocations: 109 kB / 21.93 MB, free: 5.223 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.001654/0.001654, allocations: 213.5 kB / 25.22 MB, free: 3.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 59.92 kB / 348.4 MB, free: 9.395 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3379, allocations: 49.15 MB / 397.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01319/0.3511, allocations: 6.654 MB / 404.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0385/0.3896, allocations: 15.88 MB / 420.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002911/0.3925, allocations: 97.44 kB / 420.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005928/0.3984, allocations: 0.7379 MB / 421 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.4122, allocations: 1.795 MB / 422.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00898/0.4212, allocations: 1.263 MB / 424 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.4325, allocations: 3.205 MB / 427.2 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007305/0.4332, allocations: 130 kB / 427.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001733/0.435, allocations: 0.534 MB / 427.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.4362, allocations: 0.5305 MB / 428.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.4364, allocations: 40 kB / 428.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006582/0.443, allocations: 1.058 MB / 429.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003867/0.4434, allocations: 170.8 kB / 429.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.4445, allocations: 0.5007 MB / 430.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0065/0.451, allocations: 2.264 MB / 432.4 MB, free: 256 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.451, allocations: 0 / 432.4 MB, free: 256 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.451, allocations: 0 / 432.4 MB, free: 256 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.188e-05/0.4511, allocations: 0 / 432.4 MB, free: 256 kB / 334.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.005823/0.4569, allocations: 1.999 MB / 434.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.457, allocations: 15.98 kB / 434.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004441/0.4574, allocations: 206.7 kB / 434.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003643/0.461, allocations: 1.264 MB / 435.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.4611, allocations: 20.66 kB / 435.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.4612, allocations: 24 kB / 436 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.4629, allocations: 441.8 kB / 436.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.4629, allocations: 0 / 436.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.825e-05/0.463, allocations: 12 kB / 436.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.133e-05/0.463, allocations: 12 kB / 436.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002028/0.465, allocations: 478.3 kB / 436.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.47, allocations: 1.433 MB / 438.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.4715, allocations: 343.3 kB / 438.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.4729, allocations: 369.7 kB / 439 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01653/0.4894, allocations: 6.989 MB / 446 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00067/0.4901, allocations: 255.2 kB / 446.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.555e-06/0.4901, allocations: 3.938 kB / 446.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002212/0.4923, allocations: 0.771 MB / 447 MB, free: 1.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.4923, allocations: 55.41 kB / 447.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.4943, allocations: 1.472 MB / 448.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.4944, allocations: 37.7 kB / 448.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007456/0.4951, allocations: 0.7311 MB / 449.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.4952, allocations: 99.19 kB / 449.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.4954, allocations: 126 kB / 449.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.4956, allocations: 326 kB / 449.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.4961, allocations: 164.9 kB / 450 MB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000641/0.4967, allocations: 358.8 kB / 450.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.4978, allocations: 0.5372 MB / 450.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4978, allocations: 0 / 450.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001593/0.4994, allocations: 0.7634 MB / 451.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.4994, allocations: 8 kB / 451.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.3e-05/0.4995, allocations: 48.83 kB / 451.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003642/0.4999, allocations: 132.8 kB / 451.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/0.5003, allocations: 103.8 kB / 452 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007659/0.5011, allocations: 0.6812 MB / 452.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006239/0.5017, allocations: 79.45 kB / 452.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/0.5018, allocations: 40.06 kB / 452.8 MB, free: 11.21 MB / 366.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.0004793/0.5023, allocations: 273.7 kB / 453 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002359/0.5025, allocations: 194.8 kB / 453.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.5043, allocations: 0.7386 MB / 454 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.5043, allocations: 7.984 kB / 454 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5043, allocations: 0 / 454 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5043, allocations: 0 / 454 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.5066, allocations: 1.204 MB / 455.2 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-05/0.5067, allocations: 32 kB / 455.2 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.5069, allocations: 52.08 kB / 455.3 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002667/0.5072, allocations: 128.8 kB / 455.4 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.5072, allocations: 20 kB / 455.4 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006633/0.5079, allocations: 0.6617 MB / 456.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5079, allocations: 7.969 kB / 456.1 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.5093, allocations: 0.7252 MB / 456.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.5098, allocations: 212.6 kB / 457 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.5099, allocations: 7.938 kB / 457 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.5104, allocations: 35.91 kB / 457 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.5105, allocations: 43.94 kB / 457.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.5106, allocations: 20 kB / 457.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.5119, allocations: 0.9692 MB / 458.1 MB, free: 5.754 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5119, allocations: 0 / 458.1 MB, free: 5.754 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009091/0.5128, allocations: 335.5 kB / 458.4 MB, free: 5.426 MB / 366.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.0009384/0.5137, allocations: 0.5736 MB / 459 MB, free: 4.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.5152, allocations: 0.4965 MB / 459.5 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5152, allocations: 0 / 459.5 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.5158, allocations: 279.5 kB / 459.7 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.5169, allocations: 264.2 kB / 460 MB, free: 3.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.5208, allocations: 2.308 MB / 462.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006301/0.5215, allocations: 0.5705 MB / 462.9 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.5216, allocations: 95.44 kB / 463 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5217, allocations: 0 / 463 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of Templates: time 0.04235/0.564, allocations: 26.84 MB / 489.8 MB, free: 5.832 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.710559490136802]