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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0009787/0.0009787, allocations: 198.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 7.645 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008305/0.0008306, allocations: 99.52 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002277/0.0002277, allocations: 8 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1866, allocations: 51.47 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08783/0.2744, allocations: 82.29 MB / 491.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.2747, allocations: 79.88 kB / 491.8 MB, free: 8.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.2915, allocations: 6.414 MB / 498.2 MB, free: 1.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2915, allocations: 0 / 498.2 MB, free: 1.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.2916, allocations: 4 kB / 498.2 MB, free: 1.828 MB / 362.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.001386/0.2929, allocations: 0.7561 MB / 498.9 MB, free: 1.023 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.293, allocations: 8.031 kB / 498.9 MB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.483e-05/0.2931, allocations: 39.53 kB / 499 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.2936, allocations: 365.8 kB / 499.3 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.2937, allocations: 28.61 kB / 499.4 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.714e-05/0.2938, allocations: 32 kB / 499.4 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.2943, allocations: 341.8 kB / 499.7 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2943, allocations: 0 / 499.7 MB, free: 176 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.436e-05/0.2943, allocations: 16 kB / 499.8 MB, free: 160 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2944, allocations: 8 kB / 499.8 MB, free: 152 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.2948, allocations: 230.5 kB / 500 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.2966, allocations: 1.331 MB / 0.4896 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003839/0.297, allocations: 262.5 kB / 0.4898 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.297, allocations: 7.984 kB / 0.4898 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.2971, allocations: 46.45 kB / 0.4899 GB, free: 14.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.2971, allocations: 0 / 0.4899 GB, free: 14.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004359/0.2975, allocations: 233.5 kB / 0.4901 GB, free: 13.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.2976, allocations: 51.41 kB / 0.4901 GB, free: 13.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.2979, allocations: 286.1 kB / 0.4904 GB, free: 13.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.2979, allocations: 33.7 kB / 0.4904 GB, free: 13.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.298, allocations: 208 kB / 0.4906 GB, free: 13.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.2981, allocations: 55.19 kB / 0.4907 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/0.2981, allocations: 12 kB / 0.4907 GB, free: 13.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.2982, allocations: 334.8 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.2984, allocations: 71.97 kB / 0.4911 GB, free: 12.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.2985, allocations: 131.6 kB / 0.4912 GB, free: 12.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.2986, allocations: 58.06 kB / 0.4913 GB, free: 12.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2987, allocations: 4 kB / 0.4913 GB, free: 12.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003663/0.299, allocations: 233.1 kB / 0.4915 GB, free: 12.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.299, allocations: 8.219 kB / 0.4915 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2991, allocations: 7.953 kB / 0.4915 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2991, allocations: 4 kB / 0.4915 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.2993, allocations: 51.91 kB / 0.4916 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2993, allocations: 0 / 0.4916 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004067/0.2997, allocations: 87.77 kB / 0.4917 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.2997, allocations: 8 kB / 0.4917 GB, free: 12.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.000153/0.2999, allocations: 145.8 kB / 0.4918 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.3, allocations: 39.56 kB / 0.4918 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/0.3004, allocations: 203.8 kB / 0.492 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3004, allocations: 7.953 kB / 0.492 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3004, allocations: 0 / 0.492 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3004, allocations: 3.984 kB / 0.492 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007492/0.3011, allocations: 0.6267 MB / 0.4927 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3012, allocations: 0 / 0.4927 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.3013, allocations: 35.88 kB / 0.4927 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.3013, allocations: 4 kB / 0.4927 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3014, allocations: 4.031 kB / 0.4927 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3014, allocations: 0 / 0.4927 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3014, allocations: 4 kB / 0.4927 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.3018, allocations: 381.6 kB / 0.4931 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.287e-05/0.3019, allocations: 104.8 kB / 0.4932 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.302, allocations: 4.094 kB / 0.4932 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.3024, allocations: 87.92 kB / 0.4933 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.3026, allocations: 79.8 kB / 0.4933 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.3026, allocations: 8 kB / 0.4933 GB, free: 10.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002311/0.3028, allocations: 233.9 kB / 0.4936 GB, free: 10.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3028, allocations: 0 / 0.4936 GB, free: 10.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003381/0.3032, allocations: 83.69 kB / 0.4936 GB, free: 10.1 MB / 378.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 (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.0001557/0.3033, allocations: 111.2 kB / 0.4937 GB, free: 9.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003335/0.3037, allocations: 194.3 kB / 0.4939 GB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3037, allocations: 0 / 0.4939 GB, free: 9.797 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.3038, allocations: 99.88 kB / 0.494 GB, free: 9.699 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.3042, allocations: 52.22 kB / 0.4941 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.3055, allocations: 0.9046 MB / 0.495 GB, free: 8.715 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3058, allocations: 0.7833 MB / 0.4957 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.306, allocations: 34.28 kB / 0.4958 GB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.049e-05/0.3061, allocations: 23.44 kB / 0.4958 GB, free: 7.848 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3061, allocations: 0 / 0.4958 GB, free: 7.848 MB / 378.7 MB Notification: Performance of Templates: time 0.006551/0.3126, allocations: 3.631 MB / 0.4993 GB, free: 4.27 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches