Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 190.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008671/0.0008671, allocations: 102.5 kB / 296.8 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003137, allocations: 8 kB / 356.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2279, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.002953/0.2309, allocations: 3.465 MB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.2328, allocations: 1.904 MB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.2331, allocations: 11.94 kB / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008224/0.2339, allocations: 0.5451 MB / 414 MB, free: 21.79 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.0004046/0.2343, allocations: 338.5 kB / 414.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.2347, allocations: 209.7 kB / 414.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006013/0.2353, allocations: 0.8727 MB / 415.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.2357, allocations: 307.8 kB / 415.7 MB, free: 20.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.2359, allocations: 302.9 kB / 416 MB, free: 19.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.2362, allocations: 406.5 kB / 416.4 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.188e-05/0.2363, allocations: 40 kB / 416.4 MB, free: 19.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.2364, allocations: 80 kB / 416.5 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.2366, allocations: 426.8 kB / 416.9 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003263/0.237, allocations: 0.5648 MB / 417.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007136/0.2377, allocations: 1.399 MB / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2377, allocations: 3.938 kB / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2377, allocations: 0 / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.2377, allocations: 0 / 418.9 MB, free: 16.86 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.0018/0.2395, allocations: 1.597 MB / 420.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.2396, allocations: 8.031 kB / 420.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.2397, allocations: 159 kB / 420.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.241, allocations: 1.173 MB / 421.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.2413, allocations: 140.9 kB / 421.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.2413, allocations: 55.84 kB / 422 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009119/0.2422, allocations: 0.6821 MB / 422.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2423, allocations: 3.938 kB / 422.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.2423, allocations: 20 kB / 422.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.2423, allocations: 12 kB / 422.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007134/0.2431, allocations: 451.7 kB / 423.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.2463, allocations: 2.914 MB / 426.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009279/0.2472, allocations: 466.5 kB / 426.5 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.2478, allocations: 342.3 kB / 426.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.2478, allocations: 7.938 kB / 426.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.2479, allocations: 38.56 kB / 426.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.2479, allocations: 0 / 426.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001741/0.2496, allocations: 0.8426 MB / 427.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.2497, allocations: 261 kB / 428 MB, free: 7.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.2517, allocations: 2.246 MB / 430.2 MB, free: 5.098 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.2517, allocations: 33.7 kB / 430.3 MB, free: 5.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.2521, allocations: 0.6351 MB / 430.9 MB, free: 4.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.2522, allocations: 106.5 kB / 431 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/0.2522, allocations: 8 kB / 431 MB, free: 4.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.2522, allocations: 333.9 kB / 431.3 MB, free: 3.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.2526, allocations: 176.6 kB / 431.5 MB, free: 3.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.253, allocations: 320.5 kB / 431.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006836/0.2537, allocations: 424.7 kB / 432.2 MB, free: 2.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2538, allocations: 4 kB / 432.3 MB, free: 2.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009906/0.2547, allocations: 0.6291 MB / 432.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2548, allocations: 8 kB / 432.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2548, allocations: 4 kB / 432.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.255, allocations: 68.75 kB / 433 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.2554, allocations: 103.9 kB / 433.1 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.2566, allocations: 1.623 MB / 434.7 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.257, allocations: 59.64 kB / 434.7 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.2571, allocations: 16 kB / 434.8 MB, free: 332 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0004912/0.2576, allocations: 493.4 kB / 435.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.2577, allocations: 142.3 kB / 435.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.2579, allocations: 169.6 kB / 435.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.258, allocations: 0 / 435.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.258, allocations: 0 / 435.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.258, allocations: 4 kB / 435.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.2606, allocations: 1.711 MB / 437.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.2606, allocations: 4 kB / 437.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.261, allocations: 75.94 kB / 437.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.2612, allocations: 68.86 kB / 437.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.2612, allocations: 4 kB / 437.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.2626, allocations: 1.576 MB / 439 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.2626, allocations: 4.062 kB / 439 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.2642, allocations: 0.8607 MB / 439.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/0.2647, allocations: 331.3 kB / 440.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.2648, allocations: 15.98 kB / 440.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/0.2653, allocations: 59.95 kB / 440.2 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.273e-05/0.2654, allocations: 27.95 kB / 440.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.2655, allocations: 15.98 kB / 440.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002037/0.2675, allocations: 1.607 MB / 441.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2675, allocations: 0 / 441.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007014/0.2682, allocations: 203.5 kB / 442.1 MB, free: 8.715 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.0009812/0.2692, allocations: 465.5 kB / 442.6 MB, free: 8.418 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.2704, allocations: 0.5415 MB / 443.1 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.2704, allocations: 0 / 443.1 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005831/0.271, allocations: 338.8 kB / 443.4 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009911/0.272, allocations: 200 kB / 443.6 MB, free: 7.324 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.276, allocations: 3.007 MB / 446.6 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009047/0.2769, allocations: 1.253 MB / 447.9 MB, free: 3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.2772, allocations: 75.42 kB / 448 MB, free: 2.926 MB / 314.7 MB Notification: Performance of SimCode: time 2.274e-06/0.2772, allocations: 0 / 448 MB, free: 2.926 MB / 314.7 MB Notification: Performance of Templates: time 0.02767/0.3049, allocations: 20.79 MB / 468.7 MB, free: 14.16 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches