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.001114/0.001114, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 59.41 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09774, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003931/0.1017, allocations: 2.979 MB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.1028, allocations: 0.7518 MB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.103, allocations: 11.94 kB / 362.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.1032, allocations: 55.44 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.1034, allocations: 107.1 kB / 362.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.1038, allocations: 107.8 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003979/0.1042, allocations: 410.3 kB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003102/0.1045, allocations: 213.8 kB / 363.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1046, allocations: 159.4 kB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.1049, allocations: 183.2 kB / 363.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.105, allocations: 40 kB / 363.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.1051, allocations: 55.98 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.1052, allocations: 107.7 kB / 364 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.1054, allocations: 207 kB / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004691/0.1059, allocations: 498.3 kB / 364.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1059, allocations: 0 / 364.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1059, allocations: 3.938 kB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1059, allocations: 0 / 364.7 MB, free: 7.492 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.001492/0.1074, allocations: 0.7912 MB / 365.5 MB, free: 6.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.1075, allocations: 12.03 kB / 365.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.093e-05/0.1075, allocations: 40.47 kB / 365.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.108, allocations: 354.5 kB / 365.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.108, allocations: 21.03 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.1081, allocations: 32.38 kB / 366 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.1086, allocations: 342.2 kB / 366.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1086, allocations: 0 / 366.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.1087, allocations: 12 kB / 366.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1087, allocations: 12 kB / 366.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.1091, allocations: 238.5 kB / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.1108, allocations: 1.299 MB / 367.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.1112, allocations: 178.4 kB / 368 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.1115, allocations: 132.8 kB / 368.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.1115, allocations: 3.938 kB / 368.2 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1115, allocations: 38.5 kB / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.1115, allocations: 0 / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004406/0.112, allocations: 229.5 kB / 368.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.112, allocations: 55.41 kB / 368.5 MB, free: 3.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.1124, allocations: 315 kB / 368.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1124, allocations: 29.7 kB / 368.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1125, allocations: 211.9 kB / 369 MB, free: 2.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.1126, allocations: 59.19 kB / 369.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.1127, allocations: 45.62 kB / 369.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1128, allocations: 334.8 kB / 369.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.1129, allocations: 75.95 kB / 369.5 MB, free: 2.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.1131, allocations: 136.7 kB / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.1133, allocations: 166.1 kB / 369.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.1133, allocations: 0 / 369.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003738/0.1137, allocations: 245 kB / 370.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.1137, allocations: 8.25 kB / 370.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1137, allocations: 8 kB / 370.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1137, allocations: 4 kB / 370.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.1139, allocations: 43.92 kB / 370.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.1139, allocations: 7.984 kB / 370.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.1143, allocations: 59.69 kB / 370.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.1143, allocations: 12 kB / 370.2 MB, free: 1.703 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.0001457/0.1145, allocations: 166.3 kB / 370.4 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-05/0.1145, allocations: 27.66 kB / 370.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003651/0.1149, allocations: 191.8 kB / 370.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1149, allocations: 4 kB / 370.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1149, allocations: 0 / 370.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.115, allocations: 0 / 370.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007647/0.1157, allocations: 0.6358 MB / 371.2 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1157, allocations: 4.031 kB / 371.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.1159, allocations: 31.92 kB / 371.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1159, allocations: 0 / 371.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.1159, allocations: 4 kB / 371.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1159, allocations: 0 / 371.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1159, allocations: 0 / 371.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004758/0.1164, allocations: 387.1 kB / 371.6 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.1165, allocations: 108.9 kB / 371.7 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.1166, allocations: 4 kB / 371.7 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1643/0.2809, allocations: 49.84 kB / 371.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.2811, allocations: 78.19 kB / 371.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.2812, allocations: 5.641 kB / 371.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002896/0.2815, allocations: 244.2 kB / 372.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2815, allocations: 4.891 kB / 372.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005084/0.282, allocations: 83.94 kB / 372.2 MB, free: 20.12 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.0001448/0.2821, allocations: 106.7 kB / 372.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.2825, allocations: 181.5 kB / 372.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2825, allocations: 0 / 372.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.2827, allocations: 114.5 kB / 372.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.2832, allocations: 50.61 kB / 372.6 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.2846, allocations: 0.7147 MB / 373.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.2849, allocations: 0.7742 MB / 374.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.285, allocations: 36.44 kB / 374.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.759e-05/0.2851, allocations: 27.33 kB / 374.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2851, allocations: 0 / 374.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of Templates: time 0.009022/0.2942, allocations: 4.497 MB / 378.7 MB, free: 18.79 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 cvode -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