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.001454/0.001454, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2967, allocations: 50.55 MB / 409.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006588/0.3034, allocations: 5.541 MB / 414.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002954/0.3064, allocations: 1.874 MB / 416.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.3067, allocations: 12 kB / 416.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009552/0.3077, allocations: 0.5264 MB / 417.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000626/0.3083, allocations: 389.8 kB / 417.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007049/0.309, allocations: 374.9 kB / 417.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009411/0.31, allocations: 0.9003 MB / 418.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005514/0.3105, allocations: 324.9 kB / 419.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.311, allocations: 370.7 kB / 419.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000498/0.3116, allocations: 442.4 kB / 419.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.3117, allocations: 83.94 kB / 420 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.3119, allocations: 124 kB / 420.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004803/0.3124, allocations: 0.5882 MB / 420.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007079/0.3131, allocations: 0.7377 MB / 421.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002242/0.3154, allocations: 2.126 MB / 423.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3154, allocations: 0 / 423.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3154, allocations: 0 / 423.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.3154, allocations: 0 / 423.6 MB, free: 3.062 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003248/0.3187, allocations: 2.087 MB / 425.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3187, allocations: 8.031 kB / 425.7 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002555/0.319, allocations: 186.6 kB / 425.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.3211, allocations: 1.509 MB / 427.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.3212, allocations: 66.69 kB / 427.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.3213, allocations: 48 kB / 427.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.3223, allocations: 0.5854 MB / 428.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.3224, allocations: 0 / 428.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/0.3224, allocations: 24 kB / 428.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.3224, allocations: 15.94 kB / 428.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006701/0.3231, allocations: 339.8 kB / 428.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004349/0.3275, allocations: 3.238 MB / 431.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3285, allocations: 382.2 kB / 432.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.329, allocations: 192.7 kB / 432.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.329, allocations: 0 / 432.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.3291, allocations: 38.56 kB / 432.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.3291, allocations: 0 / 432.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001799/0.3309, allocations: 0.6963 MB / 433 MB, free: 9.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.352e-05/0.331, allocations: 209.6 kB / 433.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00332/0.3343, allocations: 2.901 MB / 436.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.3344, allocations: 33.7 kB / 436.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007066/0.3351, allocations: 0.7854 MB / 436.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/0.3352, allocations: 78.91 kB / 437 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.3353, allocations: 66.02 kB / 437.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3354, allocations: 322 kB / 437.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.3358, allocations: 116.6 kB / 437.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.3362, allocations: 296.7 kB / 437.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.3368, allocations: 357.3 kB / 438.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.3369, allocations: 4 kB / 438.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001098/0.338, allocations: 0.5625 MB / 438.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.338, allocations: 4 kB / 438.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.338, allocations: 8 kB / 438.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.3383, allocations: 60.81 kB / 438.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.3386, allocations: 76.03 kB / 438.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.3402, allocations: 1.72 MB / 440.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.3407, allocations: 55.56 kB / 440.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.3407, allocations: 24.03 kB / 440.6 MB, free: 1.32 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006861/0.3414, allocations: 0.5757 MB / 441.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.3416, allocations: 165.9 kB / 441.4 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.3428, allocations: 0.5103 MB / 441.9 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3428, allocations: 4 kB / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.3428, allocations: 0 / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3428, allocations: 0 / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.3456, allocations: 1.698 MB / 443.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/0.3456, allocations: 8.016 kB / 443.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.3459, allocations: 43.97 kB / 443.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.3461, allocations: 52.75 kB / 443.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.3461, allocations: 4 kB / 443.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.3475, allocations: 1.673 MB / 445.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3475, allocations: 0 / 445.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.3488, allocations: 0.6994 MB / 446.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00074/0.3496, allocations: 382.8 kB / 446.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.3497, allocations: 8 kB / 446.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.3501, allocations: 43.95 kB / 446.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.3502, allocations: 31.95 kB / 446.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3503, allocations: 8 kB / 446.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002624/0.3529, allocations: 2.075 MB / 448.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3529, allocations: 0 / 448.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008509/0.3538, allocations: 199.6 kB / 448.8 MB, free: 8.848 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008009/0.3546, allocations: 364.4 kB / 449.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.3556, allocations: 445.4 kB / 449.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3556, allocations: 4 kB / 449.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005083/0.3561, allocations: 269.3 kB / 449.8 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009524/0.3571, allocations: 222.5 kB / 450.1 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/0.3613, allocations: 3.005 MB / 453.1 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009932/0.3623, allocations: 1.355 MB / 454.4 MB, free: 3.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.3628, allocations: 249.7 kB / 454.7 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.363, allocations: 83.44 kB / 454.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.363, allocations: 0 / 454.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of Templates: time 0.02822/0.3912, allocations: 15.75 MB / 470.5 MB, free: 3.23 MB / 382.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