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.001662/0.001662, allocations: 107 kB / 21.18 MB, free: 0.6445 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.002049/0.002049, allocations: 209.2 kB / 24.48 MB, free: 3.938 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 2.061/2.061, allocations: 230.6 MB / 258.3 MB, free: 7.73 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.001595/0.001595, allocations: 55.92 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.4338, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009175/0.443, allocations: 6.921 MB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02519/0.4681, allocations: 16.71 MB / 456 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001804/0.47, allocations: 98.88 kB / 456 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00303/0.473, allocations: 0.7578 MB / 456.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007607/0.4806, allocations: 1.819 MB / 458.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00579/0.4864, allocations: 1.316 MB / 459.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006515/0.4929, allocations: 3.318 MB / 463.3 MB, free: 7.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004314/0.4933, allocations: 132.8 kB / 463.4 MB, free: 7.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.4944, allocations: 0.5834 MB / 464 MB, free: 6.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007719/0.4952, allocations: 0.5629 MB / 464.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.4953, allocations: 40 kB / 464.6 MB, free: 6.305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004037/0.4994, allocations: 1.21 MB / 465.8 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002488/0.4996, allocations: 170.8 kB / 466 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007784/0.5004, allocations: 0.5045 MB / 466.5 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004344/0.5047, allocations: 2.237 MB / 468.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.5047, allocations: 0 / 468.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5047, allocations: 0 / 468.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.613e-05/0.5048, allocations: 4 kB / 468.7 MB, free: 2.168 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.003683/0.5085, allocations: 1.991 MB / 470.7 MB, free: 136 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.5085, allocations: 12.03 kB / 470.7 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.5088, allocations: 198.8 kB / 470.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.511, allocations: 1.257 MB / 472.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.511, allocations: 20.66 kB / 472.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.522e-05/0.5111, allocations: 31.94 kB / 472.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.5121, allocations: 433.8 kB / 472.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.5121, allocations: 3.938 kB / 472.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/0.5122, allocations: 8 kB / 472.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.5122, allocations: 8 kB / 472.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.5133, allocations: 482.3 kB / 473.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.5164, allocations: 1.417 MB / 474.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009314/0.5173, allocations: 349.4 kB / 474.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007253/0.518, allocations: 365.9 kB / 475.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0149/0.5329, allocations: 6.996 MB / 482.2 MB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007761/0.5337, allocations: 267.1 kB / 482.5 MB, free: 3.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 3.516e-06/0.5337, allocations: 0 / 482.5 MB, free: 3.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002538/0.5363, allocations: 0.7625 MB / 483.3 MB, free: 3.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.5363, allocations: 67.33 kB / 483.3 MB, free: 3.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.5386, allocations: 1.459 MB / 484.8 MB, free: 1.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-05/0.5386, allocations: 33.7 kB / 484.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007407/0.5394, allocations: 0.731 MB / 485.5 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.5395, allocations: 99.17 kB / 485.6 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.5397, allocations: 130 kB / 485.8 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.5399, allocations: 322 kB / 486.1 MB, free: 308 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000472/0.5404, allocations: 160.9 kB / 486.2 MB, free: 148 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000665/0.541, allocations: 358.9 kB / 486.6 MB, free: 15.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.5422, allocations: 0.5338 MB / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5422, allocations: 4 kB / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001974/0.5442, allocations: 0.7519 MB / 487.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.5442, allocations: 11.94 kB / 487.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.438e-05/0.5443, allocations: 44 kB / 487.9 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003719/0.5447, allocations: 137.4 kB / 488.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.5451, allocations: 107.8 kB / 488.2 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007338/0.5458, allocations: 0.6812 MB / 488.8 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/0.5465, allocations: 71.58 kB / 488.9 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.938e-05/0.5466, allocations: 36 kB / 489 MB, free: 13.2 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.0005135/0.5471, allocations: 273.7 kB / 489.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.5474, allocations: 198.7 kB / 489.4 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.5493, allocations: 0.7347 MB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.5493, allocations: 4 kB / 490.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5493, allocations: 0 / 490.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.5494, allocations: 3.984 kB / 490.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.5519, allocations: 1.196 MB / 491.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.529e-05/0.552, allocations: 32 kB / 491.4 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.5522, allocations: 55.81 kB / 491.4 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003005/0.5525, allocations: 124.9 kB / 491.6 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.5526, allocations: 23.98 kB / 491.6 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007316/0.5533, allocations: 0.6655 MB / 492.3 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5533, allocations: 4.031 kB / 492.3 MB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.555, allocations: 0.7218 MB / 493 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000638/0.5557, allocations: 208.6 kB / 493.2 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001658/0.5558, allocations: 8 kB / 493.2 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.5563, allocations: 27.95 kB / 493.2 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.5564, allocations: 43.95 kB / 493.3 MB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.736e-05/0.5565, allocations: 19.98 kB / 493.3 MB, free: 8.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001644/0.5581, allocations: 0.961 MB / 494.2 MB, free: 7.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5581, allocations: 0 / 494.2 MB, free: 7.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001089/0.5592, allocations: 331.6 kB / 494.6 MB, free: 7.438 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.001063/0.5603, allocations: 0.5808 MB / 495.1 MB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.5618, allocations: 500 kB / 495.6 MB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5618, allocations: 0 / 495.6 MB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006952/0.5625, allocations: 279.4 kB / 495.9 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.001404/0.5639, allocations: 311 kB / 496.2 MB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.568, allocations: 2.244 MB / 498.5 MB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000731/0.5687, allocations: 0.5705 MB / 499 MB, free: 2.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006821/0.5694, allocations: 199.9 kB / 499.2 MB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.5696, allocations: 91.42 kB / 499.3 MB, free: 2.57 MB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5696, allocations: 7.938 kB / 499.3 MB, free: 2.562 MB / 398.1 MB Notification: Performance of Templates: time 0.0395/0.6091, allocations: 21.53 MB / 0.5086 GB, free: 13.27 MB / 430.1 MB " [Timeout remaining time 659] 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 cvode -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: 6.593423353988328]