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.001064/0.001065, allocations: 93.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.00141, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.7 MB / 246.8 MB, free: 11.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002129/0.0002129, allocations: 4 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.104, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003007/0.1071, allocations: 2.631 MB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.1083, allocations: 0.7324 MB / 362.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.1084, allocations: 8 kB / 362.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.1086, allocations: 43.62 kB / 362.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.1088, allocations: 103.2 kB / 362.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1091, allocations: 79.94 kB / 362.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.1095, allocations: 414.3 kB / 363.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.1098, allocations: 177.3 kB / 363.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.11, allocations: 127.4 kB / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.1102, allocations: 159.2 kB / 363.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.685e-05/0.1102, allocations: 16 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.33e-05/0.1103, allocations: 32 kB / 363.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.1105, allocations: 79.66 kB / 363.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.1106, allocations: 196.8 kB / 364 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.1111, allocations: 466.5 kB / 364.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1111, allocations: 0 / 364.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1111, allocations: 0 / 364.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1111, allocations: 4 kB / 364.5 MB, free: 8.02 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.001542/0.1126, allocations: 0.768 MB / 365.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1127, allocations: 12.03 kB / 365.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.864e-05/0.1128, allocations: 40.47 kB / 365.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.1132, allocations: 342.5 kB / 365.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.1132, allocations: 29.03 kB / 365.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/0.1133, allocations: 32.28 kB / 365.7 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/0.1138, allocations: 350.2 kB / 366 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1138, allocations: 4 kB / 366.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.1139, allocations: 8 kB / 366.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1139, allocations: 11.94 kB / 366.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.1143, allocations: 242.4 kB / 366.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.1162, allocations: 1.307 MB / 367.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.1165, allocations: 174.6 kB / 367.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.1168, allocations: 128.7 kB / 367.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.1168, allocations: 4 kB / 367.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.1169, allocations: 42.5 kB / 368 MB, free: 4.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.1169, allocations: 0 / 368 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004582/0.1173, allocations: 223.7 kB / 368.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.1174, allocations: 59.41 kB / 368.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1177, allocations: 322.9 kB / 368.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1178, allocations: 29.7 kB / 368.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1179, allocations: 208.1 kB / 368.8 MB, free: 3.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.118, allocations: 55.2 kB / 368.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.118, allocations: 29.7 kB / 368.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1182, allocations: 334.8 kB / 369.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.1183, allocations: 71.97 kB / 369.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1185, allocations: 140.6 kB / 369.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.1187, allocations: 174 kB / 369.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1187, allocations: 0 / 369.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003912/0.1191, allocations: 241 kB / 369.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1192, allocations: 4 kB / 369.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1192, allocations: 4 kB / 369.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1192, allocations: 4 kB / 369.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.1194, allocations: 51.91 kB / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1194, allocations: 0 / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004285/0.1198, allocations: 88.02 kB / 370 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.1199, allocations: 12 kB / 370 MB, free: 2.234 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.0001731/0.1201, allocations: 162.3 kB / 370.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.1201, allocations: 27.66 kB / 370.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.1205, allocations: 195.7 kB / 370.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.1206, allocations: 4 kB / 370.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1206, allocations: 0 / 370.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1206, allocations: 3.938 kB / 370.3 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008151/0.1214, allocations: 0.6317 MB / 371 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1214, allocations: 0 / 371 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1216, allocations: 31.92 kB / 371 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1216, allocations: 4 kB / 371 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1216, allocations: 4 kB / 371 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.1216, allocations: 7.984 kB / 371 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1216, allocations: 0 / 371 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00054/0.1222, allocations: 386.3 kB / 371.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.901e-05/0.1223, allocations: 108.8 kB / 371.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/0.1223, allocations: 0 / 371.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.1228, allocations: 87.95 kB / 371.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.123, allocations: 71.88 kB / 371.7 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.123, allocations: 8 kB / 371.7 MB, free: 424 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.1233, allocations: 237.9 kB / 371.9 MB, free: 184 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1233, allocations: 0 / 371.9 MB, free: 184 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003696/0.1237, allocations: 87.69 kB / 372 MB, free: 96 kB / 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.168/0.2916, allocations: 99.94 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00073/0.2924, allocations: 174 kB / 372.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.2924, allocations: 1.438 kB / 372.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.2927, allocations: 111.3 kB / 372.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.2934, allocations: 58.41 kB / 372.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.2952, allocations: 0.9191 MB / 373.3 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.2955, allocations: 0.7807 MB / 374.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.2957, allocations: 36.81 kB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.985e-05/0.2958, allocations: 22.7 kB / 374.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2958, allocations: 0 / 374.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of Templates: time 0.009229/0.305, allocations: 3.69 MB / 377.9 MB, free: 18.12 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