Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 194.9 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007951/0.0007951, allocations: 93.52 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002086, allocations: 8 kB / 356.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1915, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004087/0.1956, allocations: 5.289 MB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.1979, allocations: 2.145 MB / 415.5 MB, free: 20.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002522/0.1981, allocations: 11.94 kB / 415.5 MB, free: 20.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008824/0.199, allocations: 0.5683 MB / 416.1 MB, free: 19.68 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0004796/0.1995, allocations: 378.2 kB / 416.4 MB, free: 19.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.2001, allocations: 271.5 kB / 416.7 MB, free: 19.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007883/0.2009, allocations: 1.149 MB / 417.8 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.2013, allocations: 413.6 kB / 418.2 MB, free: 17.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.2016, allocations: 386.5 kB / 418.6 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.202, allocations: 482.1 kB / 419.1 MB, free: 16.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.652e-05/0.2021, allocations: 44 kB / 419.1 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.2023, allocations: 95.94 kB / 419.2 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002846/0.2026, allocations: 0.5804 MB / 419.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004368/0.203, allocations: 0.7707 MB / 420.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.2041, allocations: 2.135 MB / 422.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2041, allocations: 4 kB / 422.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2041, allocations: 4 kB / 422.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.2041, allocations: 0 / 422.7 MB, free: 12.97 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002392/0.2065, allocations: 2.054 MB / 424.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2066, allocations: 8.031 kB / 424.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.2068, allocations: 218.3 kB / 425 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.2085, allocations: 1.656 MB / 426.7 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.2088, allocations: 136.7 kB / 426.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.721e-05/0.2088, allocations: 63.91 kB / 426.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.21, allocations: 0.8375 MB / 427.7 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.21, allocations: 0 / 427.7 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.2101, allocations: 31.98 kB / 427.7 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2101, allocations: 16 kB / 427.7 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000874/0.211, allocations: 0.5478 MB / 428.3 MB, free: 7.211 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004173/0.2152, allocations: 4.055 MB / 432.3 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.2163, allocations: 0.5823 MB / 432.9 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006124/0.2169, allocations: 378.7 kB / 433.3 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.217, allocations: 4.281 kB / 433.3 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.217, allocations: 42.83 kB / 433.3 MB, free: 2.023 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/0.217, allocations: 0 / 433.3 MB, free: 2.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.001949/0.219, allocations: 0.9933 MB / 434.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.219, allocations: 265 kB / 434.6 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.2226, allocations: 3.16 MB / 437.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.2227, allocations: 37.7 kB / 437.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006766/0.2234, allocations: 0.8568 MB / 438.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.2235, allocations: 118.3 kB / 438.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.2235, allocations: 8 kB / 438.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.773e-05/0.2236, allocations: 322 kB / 439.1 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.2241, allocations: 225 kB / 439.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.2246, allocations: 402 kB / 439.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008824/0.2255, allocations: 0.54 MB / 440.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2256, allocations: 4 kB / 440.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001636/0.2272, allocations: 0.8394 MB / 441.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.2272, allocations: 8 kB / 441.1 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2272, allocations: 4 kB / 441.1 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002752/0.2275, allocations: 68.81 kB / 441.2 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.228, allocations: 124 kB / 441.3 MB, free: 9.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.2295, allocations: 1.658 MB / 442.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005618/0.2301, allocations: 83.34 kB / 443 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.2301, allocations: 24.09 kB / 443 MB, free: 7.906 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008382/0.231, allocations: 0.6463 MB / 443.7 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.2312, allocations: 189.6 kB / 443.9 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.2315, allocations: 214.6 kB / 444.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.2315, allocations: 4 kB / 444.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.2315, allocations: 0 / 444.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2315, allocations: 3.984 kB / 444.1 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.2346, allocations: 2.205 MB / 446.3 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2347, allocations: 4.062 kB / 446.3 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.235, allocations: 83.88 kB / 446.4 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.2352, allocations: 64.77 kB / 446.4 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.2353, allocations: 15.98 kB / 446.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.2366, allocations: 1.584 MB / 448 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.2366, allocations: 11.97 kB / 448.1 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.2384, allocations: 1.013 MB / 449.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006566/0.2391, allocations: 442.6 kB / 449.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.2392, allocations: 15.98 kB / 449.5 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.2398, allocations: 63.95 kB / 449.6 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.2399, allocations: 47.88 kB / 449.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.2399, allocations: 11.98 kB / 449.6 MB, free: 1.031 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002895/0.2428, allocations: 2.255 MB / 451.9 MB, free: 14.76 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2428, allocations: 0 / 451.9 MB, free: 14.76 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007973/0.2436, allocations: 259.4 kB / 452.1 MB, free: 14.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000933/0.2446, allocations: 471.5 kB / 452.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.2458, allocations: 0.6314 MB / 453.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.2458, allocations: 3.938 kB / 453.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.2465, allocations: 383 kB / 453.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.2477, allocations: 279.2 kB / 453.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00577/0.2535, allocations: 4.119 MB / 458 MB, free: 8.723 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.2546, allocations: 1.489 MB / 459.5 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.2549, allocations: 91.44 kB / 459.6 MB, free: 7.113 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2549, allocations: 0 / 459.6 MB, free: 7.113 MB / 330.7 MB Notification: Performance of Templates: time 0.03595/0.2909, allocations: 29.23 MB / 488.8 MB, free: 9.91 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches