Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000881/0.0008811, allocations: 99.61 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008929/0.000893, allocations: 194.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002706, allocations: 12 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1187, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005549/0.1243, allocations: 4.834 MB / 363.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.1273, allocations: 1.751 MB / 365.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003878/0.1277, allocations: 11.94 kB / 365.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009364/0.1287, allocations: 486.3 kB / 365.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.1293, allocations: 330.5 kB / 366 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007446/0.1301, allocations: 254.8 kB / 366.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008444/0.1309, allocations: 0.7754 MB / 367 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004245/0.1314, allocations: 247.9 kB / 367.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.1317, allocations: 282.9 kB / 367.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.1321, allocations: 358.5 kB / 367.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.1322, allocations: 32 kB / 367.9 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.1323, allocations: 63.98 kB / 368 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004168/0.1327, allocations: 0.5493 MB / 368.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.133, allocations: 288.8 kB / 368.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.1343, allocations: 1.715 MB / 370.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1344, allocations: 3.938 kB / 370.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1344, allocations: 0 / 370.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.1344, allocations: 0 / 370.6 MB, free: 1.66 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.2294/0.3638, allocations: 1.823 MB / 372.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3639, allocations: 9.031 kB / 372.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005527/0.3644, allocations: 184.7 kB / 372.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.367, allocations: 1.404 MB / 374 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.3673, allocations: 100.1 kB / 374.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/0.3674, allocations: 49.48 kB / 374.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.3686, allocations: 0.593 MB / 374.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.3687, allocations: 0 / 374.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.3687, allocations: 22.3 kB / 374.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.617e-05/0.3688, allocations: 15.16 kB / 374.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.3698, allocations: 351.5 kB / 375.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006192/0.376, allocations: 3.296 MB / 378.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3772, allocations: 428.2 kB / 378.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.3778, allocations: 194.4 kB / 379 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.3778, allocations: 2.094 kB / 379 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.3779, allocations: 46.48 kB / 379 MB, free: 15.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.705e-06/0.3779, allocations: 0 / 379 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0023/0.3802, allocations: 0.7528 MB / 379.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.3803, allocations: 213.1 kB / 380 MB, free: 14.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004656/0.3849, allocations: 2.899 MB / 382.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.373e-05/0.385, allocations: 31.86 kB / 382.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/0.3857, allocations: 0.7891 MB / 383.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.3858, allocations: 72.41 kB / 383.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.3858, allocations: 10.53 kB / 383.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.779e-05/0.3859, allocations: 321.5 kB / 384.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/0.3863, allocations: 130 kB / 384.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.3868, allocations: 300.3 kB / 384.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.3871, allocations: 162.5 kB / 384.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.299e-06/0.3871, allocations: 5.406 kB / 384.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001669/0.3888, allocations: 0.6243 MB / 385.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3889, allocations: 6.531 kB / 385.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3889, allocations: 5.125 kB / 385.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.3892, allocations: 60.55 kB / 385.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.3895, allocations: 83.83 kB / 385.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.3909, allocations: 1.571 MB / 387.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3914, allocations: 69.84 kB / 387.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.3915, allocations: 16.47 kB / 387.1 MB, free: 10.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.000812/0.3923, allocations: 0.5783 MB / 387.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.3925, allocations: 165.8 kB / 387.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001318/0.3939, allocations: 0.5429 MB / 388.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3939, allocations: 8.328 kB / 388.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.3939, allocations: 0 / 388.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3939, allocations: 9.344 kB / 388.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.397, allocations: 1.721 MB / 390.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.397, allocations: 2.094 kB / 390.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.3972, allocations: 53.88 kB / 390.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001665/0.3974, allocations: 52.7 kB / 390.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.3974, allocations: 4.141 kB / 390.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3986, allocations: 1.527 MB / 391.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3986, allocations: 1.375 kB / 391.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.3999, allocations: 0.7598 MB / 392.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.4003, allocations: 385 kB / 392.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.4005, allocations: 10.48 kB / 392.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/0.4009, allocations: 61.02 kB / 393 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.064e-05/0.401, allocations: 31.08 kB / 393 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.401, allocations: 9.156 kB / 393 MB, free: 7.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.4037, allocations: 2.078 MB / 395.1 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4037, allocations: 1.062 kB / 395.1 MB, free: 6.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008158/0.4045, allocations: 199.8 kB / 395.3 MB, free: 6.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007863/0.4053, allocations: 356.5 kB / 395.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009084/0.4062, allocations: 467.5 kB / 396.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4062, allocations: 0 / 396.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.4067, allocations: 285.6 kB / 396.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009252/0.4076, allocations: 212.4 kB / 396.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.4117, allocations: 3.31 MB / 399.9 MB, free: 2.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.4125, allocations: 1.359 MB / 401.3 MB, free: 1.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000473/0.413, allocations: 241.7 kB / 401.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.4131, allocations: 75.44 kB / 401.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4132, allocations: 0 / 401.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of Templates: time 0.02574/0.4389, allocations: 14.07 MB / 415.7 MB, free: 2.875 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches