Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001441/0.001441, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.007/1.007, allocations: 177 MB / 205.2 MB, free: 5.551 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.652e-05/2.805e-05, allocations: 2.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003432/0.00346, allocations: 2.995 MB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.004557, allocations: 0.7283 MB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.004708, allocations: 8 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.004904, allocations: 63.31 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.005132, allocations: 115.1 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.005454, allocations: 107.7 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003435/0.005798, allocations: 434.1 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.006023, allocations: 134.4 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.006218, allocations: 247.5 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.006428, allocations: 143.6 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.952e-05/0.006477, allocations: 40 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.006579, allocations: 55.98 kB / 278 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.006705, allocations: 107.6 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.006811, allocations: 143.7 kB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.007195, allocations: 314.8 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.007201, allocations: 7.984 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.007203, allocations: 0 / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.007209, allocations: 0 / 278.6 MB, free: 12.12 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.0009983/0.008207, allocations: 0.7804 MB / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.008247, allocations: 15.98 kB / 279.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.008349, allocations: 64.7 kB / 279.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.008692, allocations: 279.4 kB / 279.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.008712, allocations: 21.03 kB / 279.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.008756, allocations: 32.38 kB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.009122, allocations: 327 kB / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.009133, allocations: 192 / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.009159, allocations: 16.38 kB / 280.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.009173, allocations: 11.94 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.009397, allocations: 111.8 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.01085, allocations: 1.221 MB / 281.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.01112, allocations: 119.1 kB / 281.6 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.01128, allocations: 75.59 kB / 281.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.01132, allocations: 11.98 kB / 281.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.01135, allocations: 37.39 kB / 281.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.01135, allocations: 0 / 281.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003284/0.01168, allocations: 149.6 kB / 281.8 MB, free: 8.672 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.01172, allocations: 55.41 kB / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.01197, allocations: 324.2 kB / 282.2 MB, free: 8.273 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.012, allocations: 29.7 kB / 282.2 MB, free: 8.238 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.01214, allocations: 255.1 kB / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.01219, allocations: 63.47 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.764e-05/0.01225, allocations: 47.38 kB / 282.6 MB, free: 7.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.0124, allocations: 0.504 MB / 283.1 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.256e-05/0.01247, allocations: 31.97 kB / 283.1 MB, free: 7.316 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.895e-05/0.01256, allocations: 121 kB / 283.2 MB, free: 7.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.01272, allocations: 149 kB / 283.4 MB, free: 6.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.01272, allocations: 4 kB / 283.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002533/0.01298, allocations: 185.2 kB / 283.6 MB, free: 6.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.013, allocations: 10.97 kB / 283.6 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.01301, allocations: 0 / 283.6 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.01303, allocations: 7.938 kB / 283.6 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.01316, allocations: 43.92 kB / 283.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.01317, allocations: 4 kB / 283.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.01332, allocations: 52.09 kB / 283.7 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.01335, allocations: 12 kB / 283.7 MB, free: 6.66 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.000114/0.01346, allocations: 168.5 kB / 283.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.204e-05/0.0135, allocations: 31.86 kB / 283.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002431/0.01375, allocations: 142.4 kB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.01375, allocations: 3.938 kB / 284 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.01375, allocations: 4 kB / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.01376, allocations: 7.969 kB / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.01429, allocations: 0.5088 MB / 284.5 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.01429, allocations: 0 / 284.5 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.0144, allocations: 39.86 kB / 284.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.01441, allocations: 0 / 284.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.01442, allocations: 0 / 284.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.01443, allocations: 4 kB / 284.6 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.01443, allocations: 3.938 kB / 284.6 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.01474, allocations: 323.7 kB / 284.9 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.01478, allocations: 31.78 kB / 284.9 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.01481, allocations: 4 kB / 284.9 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.01497, allocations: 36.03 kB / 285 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.01513, allocations: 103.8 kB / 285.1 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.01515, allocations: 4 kB / 285.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001463/0.01529, allocations: 229.1 kB / 285.3 MB, free: 4.945 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01529, allocations: 0 / 285.3 MB, free: 4.945 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002686/0.01556, allocations: 83.78 kB / 285.4 MB, free: 4.863 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.0001696/0.01573, allocations: 111.2 kB / 285.5 MB, free: 4.746 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.01597, allocations: 106.1 kB / 285.6 MB, free: 4.641 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.01598, allocations: 0 / 285.6 MB, free: 4.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.007e-05/0.01606, allocations: 55.61 kB / 285.7 MB, free: 4.582 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.01639, allocations: 55.89 kB / 285.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.01757, allocations: 0.6073 MB / 286.3 MB, free: 3.895 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.297e-05/0.01763, allocations: 88.31 kB / 286.4 MB, free: 3.789 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.421e-05/0.01772, allocations: 30.28 kB / 286.4 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.969e-05/0.01779, allocations: 28.5 kB / 286.5 MB, free: 3.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.433e-06/0.0178, allocations: 0 / 286.5 MB, free: 3.73 MB / 266.7 MB Notification: Performance of Templates: time 0.1089/0.1267, allocations: 4.309 MB / 290.8 MB, free: 28.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.3044861459638923]