Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 151.1 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.475e-05/1.586e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004308/0.004324, allocations: 4.549 MB / 323.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008424/0.01275, allocations: 5.834 MB / 329.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005284/0.01328, allocations: 69.31 kB / 329.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.01448, allocations: 468 kB / 329.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002018/0.01649, allocations: 0.854 MB / 330.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.01754, allocations: 452.1 kB / 331.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003017/0.02056, allocations: 2.045 MB / 333.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.02079, allocations: 99.19 kB / 333.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006923/0.02149, allocations: 0.5052 MB / 333.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003751/0.02186, allocations: 239.5 kB / 334 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.02193, allocations: 29.34 kB / 334 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008998/0.02283, allocations: 455.2 kB / 334.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.02296, allocations: 107 kB / 334.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002921/0.02325, allocations: 239 kB / 334.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.02476, allocations: 1.294 MB / 336.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.02476, allocations: 0 / 336.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.02476, allocations: 1.281 kB / 336.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.02477, allocations: 3.938 kB / 336.1 MB, free: 9.078 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001981/0.02676, allocations: 1.397 MB / 337.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.02679, allocations: 10.52 kB / 337.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.02695, allocations: 137 kB / 337.6 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.0281, allocations: 0.7731 MB / 338.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.02812, allocations: 16.81 kB / 338.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.02817, allocations: 24.09 kB / 338.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.02876, allocations: 368.9 kB / 338.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.02877, allocations: 0 / 338.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.02881, allocations: 9.656 kB / 338.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.02882, allocations: 5.875 kB / 338.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.02927, allocations: 262.9 kB / 339.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.03093, allocations: 0.9627 MB / 340.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.03136, allocations: 256.4 kB / 340.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/0.03187, allocations: 297.3 kB / 340.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000691/0.03256, allocations: 165.5 kB / 340.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.03259, allocations: 34.56 kB / 340.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.914e-06/0.0326, allocations: 0 / 340.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003396/0.03599, allocations: 1.506 MB / 342.3 MB, free: 4.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/0.03607, allocations: 110.8 kB / 342.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.03715, allocations: 0.9301 MB / 343.3 MB, free: 2.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.03719, allocations: 25.7 kB / 343.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003151/0.0375, allocations: 361.7 kB / 343.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.03762, allocations: 138.8 kB / 343.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.03782, allocations: 113.7 kB / 344 MB, free: 2.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.03797, allocations: 326 kB / 344.3 MB, free: 1.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.03826, allocations: 158.3 kB / 344.4 MB, free: 1.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/0.0386, allocations: 227.8 kB / 344.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.04014, allocations: 0.7412 MB / 345.4 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.04015, allocations: 0 / 345.4 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001033/0.04118, allocations: 0.5954 MB / 346 MB, free: 180 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.04122, allocations: 40.83 kB / 346 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-05/0.04126, allocations: 19.98 kB / 346.1 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000227/0.04148, allocations: 65.69 kB / 346.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.04176, allocations: 51.98 kB / 346.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.04449, allocations: 3.052 MB / 349.2 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.04478, allocations: 20.08 kB / 349.2 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-05/0.04483, allocations: 24 kB / 349.3 MB, free: 12.7 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003829/0.04522, allocations: 267.9 kB / 349.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.04538, allocations: 127.2 kB / 349.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.04681, allocations: 0.7015 MB / 350.3 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.04682, allocations: 4 kB / 350.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.04682, allocations: 0 / 350.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.04683, allocations: 3.984 kB / 350.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006924/0.04752, allocations: 0.5045 MB / 350.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/0.04755, allocations: 16 kB / 350.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.04775, allocations: 35.91 kB / 350.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/0.04795, allocations: 73.67 kB / 351 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.04798, allocations: 12 kB / 351 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002697/0.05068, allocations: 3.075 MB / 354.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.05068, allocations: 0 / 354.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.05217, allocations: 0.9368 MB / 355 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.05254, allocations: 201 kB / 355.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.05265, allocations: 11.94 kB / 355.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.05295, allocations: 16.3 kB / 355.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.05305, allocations: 35.95 kB / 355.3 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.0531, allocations: 16 kB / 355.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000812/0.05391, allocations: 0.6334 MB / 355.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.05391, allocations: 0 / 355.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008015/0.05471, allocations: 219.6 kB / 356.1 MB, free: 5.5 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006329/0.05535, allocations: 322.7 kB / 356.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.05659, allocations: 0.8189 MB / 357.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.05659, allocations: 0 / 357.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007934/0.05738, allocations: 0.63 MB / 357.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000655/0.05804, allocations: 108.7 kB / 358 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.06046, allocations: 1.577 MB / 359.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.06087, allocations: 413 kB / 360 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000255/0.06112, allocations: 93.64 kB / 360.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.857e-05/0.06122, allocations: 52.48 kB / 360.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.06122, allocations: 0 / 360.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of Templates: time 0.01914/0.08036, allocations: 8.96 MB / 369.1 MB, free: 8.387 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.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.484569728374481]