Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.0007896/0.0007896, allocations: 87.62 kB / 21.44 MB, free: 3.125 MB / 18.57 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.003126/0.003126, allocations: 158.3 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8481/0.8481, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.918e-05/2.096e-05, allocations: 4.531 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003756/0.003777, allocations: 2.807 MB / 328.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.004952, allocations: 0.7205 MB / 329.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.005114, allocations: 11.94 kB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.005298, allocations: 63.36 kB / 329.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.005562, allocations: 119 kB / 329.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.005876, allocations: 103.8 kB / 329.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.006269, allocations: 422.1 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.006526, allocations: 146.3 kB / 330.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.006761, allocations: 235.6 kB / 330.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.006967, allocations: 135.6 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.365e-05/0.007021, allocations: 43.94 kB / 330.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.007126, allocations: 55.94 kB / 330.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.007258, allocations: 119.6 kB / 330.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.007393, allocations: 139.7 kB / 330.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004939/0.007886, allocations: 0.4907 MB / 331.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.007888, allocations: 0 / 331.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.007889, allocations: 0 / 331.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.007895, allocations: 3.984 kB / 331.4 MB, free: 9.832 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001209/0.009104, allocations: 0.7301 MB / 332.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.009133, allocations: 8.031 kB / 332.1 MB, free: 9.062 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.009205, allocations: 40.7 kB / 332.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.00962, allocations: 288.6 kB / 332.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.009639, allocations: 21.03 kB / 332.5 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.00969, allocations: 36.38 kB / 332.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.01021, allocations: 397.8 kB / 332.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.01022, allocations: 192 / 332.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.01024, allocations: 12.38 kB / 332.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.01025, allocations: 11.94 kB / 332.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.01067, allocations: 238.4 kB / 333.2 MB, free: 7.988 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.01209, allocations: 1.107 MB / 334.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.01241, allocations: 158.5 kB / 334.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.01263, allocations: 116.7 kB / 334.5 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.01266, allocations: 4 kB / 334.5 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.01268, allocations: 38.56 kB / 334.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.333e-06/0.01268, allocations: 0 / 334.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004065/0.01309, allocations: 236.4 kB / 334.8 MB, free: 6.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.01312, allocations: 55.41 kB / 334.9 MB, free: 6.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.01343, allocations: 301.8 kB / 335.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.01346, allocations: 29.7 kB / 335.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.01357, allocations: 212.4 kB / 335.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.01362, allocations: 63.47 kB / 335.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.628e-05/0.01369, allocations: 41.7 kB / 335.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.01381, allocations: 338.8 kB / 335.8 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.01394, allocations: 67.95 kB / 335.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.0141, allocations: 131.7 kB / 336 MB, free: 4.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.01433, allocations: 167.6 kB / 336.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01433, allocations: 0 / 336.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003673/0.01469, allocations: 244.4 kB / 336.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.01471, allocations: 11.94 kB / 336.4 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.01471, allocations: 3.984 kB / 336.4 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.01472, allocations: 7.938 kB / 336.4 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.01487, allocations: 39.98 kB / 336.5 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.01488, allocations: 7.938 kB / 336.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002995/0.01518, allocations: 67.77 kB / 336.6 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.0152, allocations: 16.06 kB / 336.6 MB, free: 4.371 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.01534, allocations: 157.7 kB / 336.7 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.01539, allocations: 27.8 kB / 336.7 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/0.01574, allocations: 187.7 kB / 336.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.01575, allocations: 3.938 kB / 336.9 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.01575, allocations: 4 kB / 336.9 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.01575, allocations: 3.984 kB / 336.9 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000656/0.01641, allocations: 0.5029 MB / 337.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.01641, allocations: 3.984 kB / 337.5 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.01655, allocations: 35.95 kB / 337.5 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.01655, allocations: 0 / 337.5 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.01657, allocations: 11.94 kB / 337.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.01657, allocations: 0 / 337.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.01657, allocations: 0 / 337.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004455/0.01701, allocations: 371.2 kB / 337.9 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.01707, allocations: 39.7 kB / 337.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.0171, allocations: 0 / 337.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.01739, allocations: 59.98 kB / 338 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.01755, allocations: 83.8 kB / 338 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.01756, allocations: 4 kB / 338 MB, free: 2.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000217/0.01778, allocations: 221.2 kB / 338.3 MB, free: 2.609 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01778, allocations: 0 / 338.3 MB, free: 2.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003685/0.01815, allocations: 83.78 kB / 338.3 MB, free: 2.527 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001302/0.01828, allocations: 111.2 kB / 338.4 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.01859, allocations: 179.7 kB / 338.6 MB, free: 2.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01859, allocations: 0 / 338.6 MB, free: 2.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.01875, allocations: 103.9 kB / 338.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.01912, allocations: 48.95 kB / 338.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.02021, allocations: 0.6779 MB / 339.5 MB, free: 1.367 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.02036, allocations: 172.8 kB / 339.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.538e-05/0.02046, allocations: 28.5 kB / 339.6 MB, free: 1.145 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.02046, allocations: 0 / 339.6 MB, free: 1.145 MB / 298.7 MB Notification: Performance of Templates: time 0.005684/0.02614, allocations: 4.288 MB / 343.9 MB, free: 12.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.821698388084769]