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.00109/0.00109, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001584/0.001584, allocations: 161 kB / 24.55 MB, free: 20 kB / 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 1.043/1.043, allocations: 177.1 MB / 205 MB, free: 5.633 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.082e-06/1.082e-06, allocations: 0 / 273 MB, free: 1.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.36e-05, allocations: 2.312 kB / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002878/0.002892, allocations: 3 MB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009452/0.003837, allocations: 0.7283 MB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.003977, allocations: 11.94 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.004159, allocations: 63.36 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.004365, allocations: 119 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.004623, allocations: 99.86 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.004964, allocations: 426.1 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.005198, allocations: 142.3 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.005385, allocations: 247.4 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.00557, allocations: 147.6 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.005614, allocations: 40 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.362e-05/0.005707, allocations: 55.98 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.005839, allocations: 115.6 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.00595, allocations: 147.7 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000341/0.00629, allocations: 299 kB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.006292, allocations: 3.938 kB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006293, allocations: 0 / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.0063, allocations: 0 / 278.6 MB, free: 11.94 MB / 266.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.0009397/0.00724, allocations: 0.7843 MB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.007279, allocations: 12.03 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.729e-05/0.007377, allocations: 68.7 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.007676, allocations: 279.4 kB / 279.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.007694, allocations: 25.03 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.078e-05/0.007745, allocations: 32.31 kB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.008098, allocations: 327.1 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.008108, allocations: 192 / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.00813, allocations: 12.38 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.008143, allocations: 11.94 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.008334, allocations: 115.8 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.00949, allocations: 1.209 MB / 281.4 MB, free: 8.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.009748, allocations: 131 kB / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.009893, allocations: 83.62 kB / 281.6 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.009929, allocations: 4 kB / 281.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.009954, allocations: 41.39 kB / 281.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.042e-06/0.009955, allocations: 0 / 281.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002797/0.01023, allocations: 144.8 kB / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.01026, allocations: 59.34 kB / 281.9 MB, free: 8.418 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.01048, allocations: 324.2 kB / 282.2 MB, free: 8.086 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.0105, allocations: 33.7 kB / 282.2 MB, free: 8.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.01062, allocations: 263.1 kB / 282.5 MB, free: 7.781 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.01066, allocations: 59.48 kB / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.698e-05/0.01073, allocations: 51.36 kB / 282.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.01087, allocations: 0.504 MB / 283.1 MB, free: 7.148 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.01093, allocations: 23.98 kB / 283.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.895e-05/0.01103, allocations: 111.6 kB / 283.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.01118, allocations: 159.2 kB / 283.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.01118, allocations: 4 kB / 283.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002367/0.01142, allocations: 181.2 kB / 283.6 MB, free: 6.602 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.01143, allocations: 8 kB / 283.6 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01144, allocations: 0 / 283.6 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.01146, allocations: 8.188 kB / 283.6 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.01157, allocations: 47.92 kB / 283.6 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.01158, allocations: 11.92 kB / 283.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.01173, allocations: 43.86 kB / 283.7 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.01175, allocations: 12 kB / 283.7 MB, free: 6.473 MB / 266.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.0001156/0.01187, allocations: 172.5 kB / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.29e-05/0.01191, allocations: 27.86 kB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.01215, allocations: 143.7 kB / 284 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.01216, allocations: 11.92 kB / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.01216, allocations: 0 / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.01217, allocations: 4 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.01266, allocations: 0.5049 MB / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01266, allocations: 0 / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.616e-05/0.01275, allocations: 27.92 kB / 284.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01276, allocations: 4 kB / 284.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.01277, allocations: 0 / 284.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.01277, allocations: 7.984 kB / 284.6 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.01278, allocations: 3.938 kB / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.01306, allocations: 321.5 kB / 284.9 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.0131, allocations: 39.72 kB / 284.9 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.01312, allocations: 4 kB / 284.9 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.01326, allocations: 31.97 kB / 285 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.0134, allocations: 103.8 kB / 285.1 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.01341, allocations: 4 kB / 285.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.01355, allocations: 229.1 kB / 285.3 MB, free: 4.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01355, allocations: 0 / 285.3 MB, free: 4.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002309/0.01378, allocations: 87.81 kB / 285.4 MB, free: 4.68 MB / 266.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.0001251/0.0139, allocations: 111.2 kB / 285.5 MB, free: 4.562 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001964/0.0141, allocations: 103.5 kB / 285.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.0141, allocations: 0 / 285.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.141e-05/0.01417, allocations: 51.61 kB / 285.6 MB, free: 4.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.01443, allocations: 44.97 kB / 285.7 MB, free: 4.359 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000978/0.01541, allocations: 0.6028 MB / 286.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.492e-05/0.01547, allocations: 96.3 kB / 286.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.639e-05/0.01555, allocations: 26.28 kB / 286.4 MB, free: 3.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.069e-05/0.01562, allocations: 24.5 kB / 286.4 MB, free: 3.562 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01562, allocations: 0 / 286.4 MB, free: 3.562 MB / 266.7 MB Notification: Performance of Templates: time 0.1159/0.1315, allocations: 4.314 MB / 290.8 MB, free: 25.88 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.538588082883507]