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.0007929/0.0007929, allocations: 102.8 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009071/0.000907, allocations: 193.2 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.7 MB / 246.4 MB, free: 9.793 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002471/0.0002471, allocations: 8 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1112, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003337/0.1146, allocations: 2.527 MB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1161, allocations: 0.7132 MB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.1164, allocations: 7.938 kB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002106/0.1166, allocations: 47.62 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.1169, allocations: 91.3 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1173, allocations: 75.86 kB / 362.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.1178, allocations: 382.3 kB / 362.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.1181, allocations: 145.1 kB / 362.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.1183, allocations: 131.5 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.1185, allocations: 151.3 kB / 362.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.1186, allocations: 16 kB / 362.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.1187, allocations: 24 kB / 362.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.1188, allocations: 79.66 kB / 363 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.411e-05/0.1189, allocations: 93.52 kB / 363.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.1193, allocations: 379.2 kB / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1193, allocations: 0 / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1193, allocations: 0 / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.1194, allocations: 4 kB / 363.5 MB, free: 8.566 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.001475/0.1208, allocations: 0.7718 MB / 364.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1209, allocations: 8.031 kB / 364.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.121, allocations: 39.53 kB / 364.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.1214, allocations: 333.4 kB / 364.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.1215, allocations: 24.61 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.1215, allocations: 35.91 kB / 364.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005676/0.1221, allocations: 341.8 kB / 365 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1221, allocations: 4 kB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1222, allocations: 19.94 kB / 365 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.1222, allocations: 8 kB / 365 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.1226, allocations: 226.5 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.1245, allocations: 1.319 MB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.1249, allocations: 186.5 kB / 366.7 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.1252, allocations: 120.8 kB / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.1252, allocations: 4 kB / 366.9 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1253, allocations: 42.5 kB / 366.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.1253, allocations: 0 / 366.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004633/0.1257, allocations: 227.9 kB / 367.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1258, allocations: 59.41 kB / 367.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.1262, allocations: 314.9 kB / 367.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1262, allocations: 29.7 kB / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.1264, allocations: 216 kB / 367.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.1264, allocations: 51.28 kB / 367.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.1265, allocations: 0 / 367.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1266, allocations: 342.8 kB / 368.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.1267, allocations: 67.97 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.1269, allocations: 144.7 kB / 368.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.1271, allocations: 59.94 kB / 368.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1271, allocations: 0 / 368.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003768/0.1275, allocations: 237.1 kB / 368.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1275, allocations: 10.77 kB / 368.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1275, allocations: 4 kB / 368.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.1275, allocations: 4.25 kB / 368.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.1277, allocations: 51.91 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1277, allocations: 3.984 kB / 368.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.1281, allocations: 87.77 kB / 368.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.1281, allocations: 12 kB / 368.8 MB, free: 2.949 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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.1283, allocations: 154.4 kB / 368.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.362e-05/0.1284, allocations: 27.7 kB / 369 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004045/0.1288, allocations: 199.7 kB / 369.2 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1288, allocations: 4 kB / 369.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1288, allocations: 7.938 kB / 369.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1288, allocations: 3.984 kB / 369.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00078/0.1296, allocations: 0.6239 MB / 369.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1296, allocations: 3.953 kB / 369.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.1298, allocations: 35.91 kB / 369.8 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1298, allocations: 4 kB / 369.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1298, allocations: 0 / 369.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.1298, allocations: 0 / 369.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1298, allocations: 32 / 369.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.1303, allocations: 382.5 kB / 370.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.1304, allocations: 112.7 kB / 370.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.1305, allocations: 4 kB / 370.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.1309, allocations: 75.98 kB / 370.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.131, allocations: 79.86 kB / 370.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1311, allocations: 8 kB / 370.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000249/0.1313, allocations: 226 kB / 370.7 MB, free: 0.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1313, allocations: 4 kB / 370.7 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003576/0.1317, allocations: 91.69 kB / 370.8 MB, free: 0.8242 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/0.1319, allocations: 103.2 kB / 370.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003491/0.1322, allocations: 180.2 kB / 371.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.1322, allocations: 4.062 kB / 371.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.1324, allocations: 103.9 kB / 371.2 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.1329, allocations: 55.38 kB / 371.2 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1932/0.3261, allocations: 0.8883 MB / 372.1 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.3265, allocations: 0.7795 MB / 372.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002379/0.3267, allocations: 34.31 kB / 372.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.3268, allocations: 21.94 kB / 373 MB, free: 18.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3268, allocations: 3.594 kB / 373 MB, free: 18.38 MB / 302.1 MB Notification: Performance of Templates: time 0.009228/0.3361, allocations: 3.582 MB / 376.5 MB, free: 18.23 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches