Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.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_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_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 99.02 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.7 MB / 246.4 MB, free: 9.789 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002749, allocations: 4 kB / 307.1 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.116, allocations: 51.52 MB / 358.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004632/0.1207, allocations: 3.474 MB / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003095/0.1238, allocations: 1.91 MB / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004707/0.1243, allocations: 11.94 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.1255, allocations: 0.549 MB / 364.6 MB, free: 7.43 MB / 302.1 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.0007496/0.1263, allocations: 334.5 kB / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.1269, allocations: 207 kB / 365.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.128, allocations: 0.8493 MB / 366 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004638/0.1285, allocations: 260.3 kB / 366.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000459/0.129, allocations: 298.9 kB / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000593/0.1296, allocations: 410.5 kB / 366.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1297, allocations: 39.94 kB / 366.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1299, allocations: 79.98 kB / 367 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003611/0.1303, allocations: 438.7 kB / 367.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.1306, allocations: 241 kB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.1317, allocations: 1.391 MB / 369.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1317, allocations: 0 / 369.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1317, allocations: 0 / 369.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.1317, allocations: 0 / 369.1 MB, free: 2.91 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002401/0.1342, allocations: 1.612 MB / 370.7 MB, free: 1.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1342, allocations: 8.031 kB / 370.7 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.1344, allocations: 158 kB / 370.8 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2206/0.3551, allocations: 1.109 MB / 372 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000429/0.3555, allocations: 139.8 kB / 372.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.3557, allocations: 48.09 kB / 372.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.3572, allocations: 0.6757 MB / 372.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.3572, allocations: 0.9375 kB / 372.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.3573, allocations: 32.81 kB / 372.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.3573, allocations: 11.75 kB / 372.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009974/0.3583, allocations: 451.8 kB / 373.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006349/0.3647, allocations: 2.936 MB / 376.2 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.3658, allocations: 465.7 kB / 376.7 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006807/0.3665, allocations: 339.8 kB / 377 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3665, allocations: 6.5 kB / 377 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.3666, allocations: 43.12 kB / 377.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.325e-06/0.3666, allocations: 4 kB / 377.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002107/0.3687, allocations: 0.832 MB / 377.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.3688, allocations: 267.7 kB / 378.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.3721, allocations: 2.242 MB / 380.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.962e-05/0.3722, allocations: 37.95 kB / 380.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005704/0.3727, allocations: 0.6395 MB / 381.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.991e-05/0.3729, allocations: 111.2 kB / 381.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.3729, allocations: 5.219 kB / 381.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.539e-05/0.373, allocations: 327.7 kB / 381.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.3734, allocations: 173.7 kB / 381.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.3739, allocations: 319.3 kB / 382 MB, free: 13.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.3744, allocations: 213.2 kB / 382.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3744, allocations: 1.125 kB / 382.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00133/0.3757, allocations: 0.6287 MB / 382.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.3758, allocations: 6.781 kB / 382.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3758, allocations: 2.188 kB / 382.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003509/0.3761, allocations: 71.33 kB / 382.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.3766, allocations: 99.86 kB / 383 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.3782, allocations: 1.624 MB / 384.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005173/0.3787, allocations: 70.95 kB / 384.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.3788, allocations: 15.62 kB / 384.7 MB, free: 11.85 MB / 302.1 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.0006941/0.3795, allocations: 481.4 kB / 385.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.3796, allocations: 138.7 kB / 385.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3799, allocations: 165.3 kB / 385.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3799, allocations: 5.75 kB / 385.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3799, allocations: 1.094 kB / 385.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3799, allocations: 4.312 kB / 385.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.383, allocations: 1.704 MB / 387.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.383, allocations: 1.188 kB / 387.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.3834, allocations: 79.23 kB / 387.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.3836, allocations: 64.25 kB / 387.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.3836, allocations: 8.797 kB / 387.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.3848, allocations: 1.579 MB / 388.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3848, allocations: 0 / 388.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.3864, allocations: 0.8615 MB / 389.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004511/0.3869, allocations: 333.5 kB / 390.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.387, allocations: 9.781 kB / 390.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.3874, allocations: 62.61 kB / 390.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.714e-05/0.3875, allocations: 33.75 kB / 390.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.3876, allocations: 15.3 kB / 390.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002156/0.3897, allocations: 1.607 MB / 391.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3898, allocations: 4 kB / 391.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008287/0.3906, allocations: 202.9 kB / 392.1 MB, free: 7.859 MB / 302.1 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.001086/0.3917, allocations: 469.2 kB / 392.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.3928, allocations: 0.5382 MB / 393.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3928, allocations: 1.375 kB / 393.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005223/0.3933, allocations: 328.7 kB / 393.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008918/0.3942, allocations: 209.2 kB / 393.6 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.3981, allocations: 2.949 MB / 396.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006893/0.3988, allocations: 1.257 MB / 397.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004495/0.3993, allocations: 213.4 kB / 398 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.3995, allocations: 74.52 kB / 398.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3995, allocations: 0 / 398.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of Templates: time 0.02204/0.4215, allocations: 12.78 MB / 410.8 MB, free: 8.113 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches