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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=144000,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=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001626/0.001626, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001973/0.001973, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.97 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09949, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004928/0.1045, allocations: 2.97 MB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1061, allocations: 0.744 MB / 362.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.1063, allocations: 8 kB / 362.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.1066, allocations: 67.36 kB / 362.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.1068, allocations: 103.1 kB / 362.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.1072, allocations: 107.9 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004643/0.1077, allocations: 418.2 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.108, allocations: 213.7 kB / 363.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1082, allocations: 163.4 kB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.1085, allocations: 175.2 kB / 363.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.492e-05/0.1086, allocations: 40 kB / 363.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.1087, allocations: 51.94 kB / 363.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002637/0.109, allocations: 115.7 kB / 364 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.1092, allocations: 199.1 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.1097, allocations: 0.4944 MB / 364.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1097, allocations: 0 / 364.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1098, allocations: 3.938 kB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1098, allocations: 0 / 364.7 MB, free: 7.461 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.00157/0.1113, allocations: 0.7913 MB / 365.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1114, allocations: 8.031 kB / 365.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.1115, allocations: 40.47 kB / 365.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.112, allocations: 346.5 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.112, allocations: 21.03 kB / 365.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.1121, allocations: 36.38 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.1127, allocations: 350.2 kB / 366.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1127, allocations: 3.938 kB / 366.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.1128, allocations: 12 kB / 366.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.1128, allocations: 4 kB / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.1132, allocations: 242.5 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.1153, allocations: 1.299 MB / 367.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.1157, allocations: 178.5 kB / 368 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.116, allocations: 128.7 kB / 368.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.1161, allocations: 4 kB / 368.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1161, allocations: 34.56 kB / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/0.1161, allocations: 0 / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004651/0.1166, allocations: 229.5 kB / 368.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.1166, allocations: 55.41 kB / 368.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.117, allocations: 319 kB / 368.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.117, allocations: 25.7 kB / 368.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.1171, allocations: 215.9 kB / 369 MB, free: 2.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.3e-05/0.1172, allocations: 55.19 kB / 369.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.254e-05/0.1173, allocations: 53.61 kB / 369.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1175, allocations: 338.8 kB / 369.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1176, allocations: 67.97 kB / 369.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.1178, allocations: 136.8 kB / 369.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.118, allocations: 159.6 kB / 369.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.118, allocations: 4 kB / 369.8 MB, free: 2.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000379/0.1184, allocations: 243.8 kB / 370.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.1184, allocations: 8 kB / 370.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1184, allocations: 0 / 370.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1185, allocations: 4 kB / 370.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.1186, allocations: 47.91 kB / 370.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1187, allocations: 8.188 kB / 370.1 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.119, allocations: 71.67 kB / 370.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.1191, allocations: 15.98 kB / 370.2 MB, free: 1.664 MB / 302.1 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.0001544/0.1192, allocations: 150.4 kB / 370.4 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.1193, allocations: 27.66 kB / 370.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003954/0.1197, allocations: 211 kB / 370.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1197, allocations: 4 kB / 370.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1197, allocations: 0 / 370.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1197, allocations: 3.984 kB / 370.6 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.1205, allocations: 0.628 MB / 371.2 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1205, allocations: 0 / 371.2 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1207, allocations: 27.98 kB / 371.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.1207, allocations: 3.938 kB / 371.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.1207, allocations: 11.98 kB / 371.3 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1207, allocations: 3.969 kB / 371.3 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1207, allocations: 4 kB / 371.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.1212, allocations: 372.4 kB / 371.6 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-05/0.1213, allocations: 104.8 kB / 371.7 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.1213, allocations: 7.984 kB / 371.8 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1786/0.3, allocations: 54.62 kB / 371.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.3002, allocations: 71.64 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.3003, allocations: 7.812 kB / 371.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.3006, allocations: 237.5 kB / 372.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3006, allocations: 3.828 kB / 372.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004581/0.301, allocations: 87.5 kB / 372.2 MB, free: 20.02 MB / 302.1 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.0001546/0.3012, allocations: 110.9 kB / 372.3 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003615/0.3016, allocations: 177.9 kB / 372.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3016, allocations: 3.219 kB / 372.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.3018, allocations: 107.7 kB / 372.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.3022, allocations: 51.45 kB / 372.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.3035, allocations: 0.7188 MB / 373.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.3038, allocations: 0.7745 MB / 374.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.304, allocations: 35.19 kB / 374.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.409e-05/0.3041, allocations: 26.72 kB / 374.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3041, allocations: 0.6875 kB / 374.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of Templates: time 0.009716/0.3138, allocations: 4.489 MB / 378.7 MB, free: 18.7 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches