Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001503/0.001503, allocations: 117.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 216.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 67.89 kB / 359.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2365, allocations: 50.55 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004189/0.2407, allocations: 2.996 MB / 413.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.242, allocations: 0.7362 MB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.2421, allocations: 4 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002142/0.2423, allocations: 67.36 kB / 414 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.2426, allocations: 103.1 kB / 414.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.2429, allocations: 107.8 kB / 414.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.2433, allocations: 418.3 kB / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.2436, allocations: 141.8 kB / 414.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.2438, allocations: 163.4 kB / 414.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.244, allocations: 183.2 kB / 415.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.2441, allocations: 40 kB / 415.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.2442, allocations: 55.98 kB / 415.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2443, allocations: 103.7 kB / 415.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.2445, allocations: 211 kB / 415.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005659/0.2451, allocations: 0.494 MB / 416 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.2451, allocations: 0 / 416 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.2451, allocations: 0 / 416 MB, free: 11.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2451, allocations: 0 / 416 MB, free: 11.65 MB / 334.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.001667/0.2468, allocations: 0.7986 MB / 416.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.2468, allocations: 11.97 kB / 416.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.597e-05/0.2469, allocations: 40.7 kB / 416.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.2474, allocations: 342.8 kB / 417.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.2474, allocations: 28.97 kB / 417.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.2475, allocations: 36.31 kB / 417.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/0.248, allocations: 354.2 kB / 417.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.248, allocations: 0 / 417.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.2481, allocations: 12 kB / 417.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.2481, allocations: 8 kB / 417.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/0.2485, allocations: 242.4 kB / 417.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.2504, allocations: 1.3 MB / 419.1 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.2508, allocations: 162.6 kB / 419.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.251, allocations: 116.7 kB / 419.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.251, allocations: 7.938 kB / 419.4 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.2511, allocations: 38.48 kB / 419.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.2511, allocations: 0 / 419.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005262/0.2516, allocations: 229.7 kB / 419.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.2516, allocations: 55.41 kB / 419.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.2521, allocations: 319 kB / 420 MB, free: 7.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.2521, allocations: 25.7 kB / 420.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.2523, allocations: 220.3 kB / 420.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.2524, allocations: 51.58 kB / 420.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.2525, allocations: 45.67 kB / 420.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.2527, allocations: 342.8 kB / 420.7 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.2528, allocations: 67.97 kB / 420.8 MB, free: 6.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.253, allocations: 143.6 kB / 420.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.2532, allocations: 158.6 kB / 421.1 MB, free: 6.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2532, allocations: 0 / 421.1 MB, free: 6.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004093/0.2536, allocations: 249.3 kB / 421.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.2537, allocations: 8 kB / 421.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2537, allocations: 4 kB / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.2537, allocations: 0 / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.2539, allocations: 43.92 kB / 421.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.2539, allocations: 7.984 kB / 421.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.2543, allocations: 67.72 kB / 421.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.2543, allocations: 20.05 kB / 421.5 MB, free: 5.855 MB / 334.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.0001737/0.2545, allocations: 153.7 kB / 421.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.284e-05/0.2546, allocations: 31.75 kB / 421.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000445/0.255, allocations: 206.8 kB / 421.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.255, allocations: 0 / 421.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.255, allocations: 0 / 421.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.255, allocations: 4 kB / 421.8 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009515/0.256, allocations: 0.6281 MB / 422.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.256, allocations: 7.938 kB / 422.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.2561, allocations: 31.92 kB / 422.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.2561, allocations: 3.984 kB / 422.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.2562, allocations: 8 kB / 422.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2562, allocations: 0 / 422.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2562, allocations: 0 / 422.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005506/0.2567, allocations: 384.5 kB / 422.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.322e-05/0.2568, allocations: 112.9 kB / 423 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.2568, allocations: 4 kB / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004256/0.2573, allocations: 51.92 kB / 423.1 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.2575, allocations: 83.81 kB / 423.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.2575, allocations: 8.062 kB / 423.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.2577, allocations: 237.9 kB / 423.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2577, allocations: 0 / 423.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.2581, allocations: 79.84 kB / 423.5 MB, free: 3.734 MB / 334.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.0001795/0.2583, allocations: 111.2 kB / 423.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003724/0.2587, allocations: 176.2 kB / 423.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2587, allocations: 4.062 kB / 423.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.2588, allocations: 107.1 kB / 423.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.2593, allocations: 44.88 kB / 423.9 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.2607, allocations: 0.7264 MB / 424.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.2612, allocations: 0.7714 MB / 425.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.2613, allocations: 34.28 kB / 425.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.813e-05/0.2614, allocations: 31.38 kB / 425.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2614, allocations: 0 / 425.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of Templates: time 0.009403/0.2708, allocations: 4.554 MB / 430 MB, free: 13.16 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches