Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009548/0.0009547, allocations: 109.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001436, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2276, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005916/0.2336, allocations: 6.032 MB / 413.1 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.2366, allocations: 2.268 MB / 415.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003542/0.237, allocations: 19.88 kB / 415.4 MB, free: 19.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.2382, allocations: 0.5995 MB / 416 MB, free: 18.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005999/0.2388, allocations: 390.2 kB / 416.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006775/0.2395, allocations: 375.7 kB / 416.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008623/0.2403, allocations: 1.239 MB / 418 MB, free: 16.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004447/0.2408, allocations: 405.6 kB / 418.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.2411, allocations: 434.3 kB / 418.8 MB, free: 16.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004186/0.2415, allocations: 0.5408 MB / 419.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.947e-05/0.2416, allocations: 60 kB / 419.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002584/0.2419, allocations: 119.9 kB / 419.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.2422, allocations: 0.5998 MB / 420.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004737/0.2427, allocations: 0.8191 MB / 420.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.244, allocations: 2.535 MB / 423.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.244, allocations: 3.984 kB / 423.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.244, allocations: 4 kB / 423.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.847e-05/0.244, allocations: 0 / 423.5 MB, free: 11.34 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.003114/0.2472, allocations: 2.36 MB / 425.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2472, allocations: 12.03 kB / 425.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.2475, allocations: 214.3 kB / 426 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.2495, allocations: 1.664 MB / 427.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.2498, allocations: 124.7 kB / 427.8 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.2499, allocations: 63.94 kB / 427.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.251, allocations: 0.8337 MB / 428.7 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.251, allocations: 3.938 kB / 428.7 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.2511, allocations: 32 kB / 428.7 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.2511, allocations: 16 kB / 428.8 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008654/0.252, allocations: 0.5438 MB / 429.3 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004591/0.2566, allocations: 4.016 MB / 433.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.2577, allocations: 0.5385 MB / 433.9 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006161/0.2583, allocations: 358.2 kB / 434.2 MB, free: 256 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.2584, allocations: 288 / 434.2 MB, free: 256 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.2584, allocations: 42.78 kB / 434.3 MB, free: 204 kB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.994e-06/0.2584, allocations: 0 / 434.3 MB, free: 204 kB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002139/0.2606, allocations: 0.9511 MB / 435.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.2607, allocations: 265 kB / 435.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/0.2644, allocations: 3.152 MB / 438.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.2644, allocations: 33.7 kB / 438.6 MB, free: 11.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006955/0.2651, allocations: 0.8646 MB / 439.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2653, allocations: 118.4 kB / 439.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.2654, allocations: 94.16 kB / 439.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2656, allocations: 326 kB / 440 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/0.266, allocations: 205 kB / 440.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005692/0.2666, allocations: 398 kB / 440.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009028/0.2675, allocations: 0.5282 MB / 441.2 MB, free: 9.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2675, allocations: 0 / 441.2 MB, free: 9.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00155/0.2691, allocations: 0.777 MB / 441.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2691, allocations: 4 kB / 441.9 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2692, allocations: 4 kB / 441.9 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002769/0.2694, allocations: 64.83 kB / 442 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.2699, allocations: 123.9 kB / 442.1 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.2715, allocations: 1.631 MB / 443.8 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.2721, allocations: 75.48 kB / 443.8 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.2722, allocations: 16 kB / 443.8 MB, free: 6.18 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 (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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008731/0.273, allocations: 0.6669 MB / 444.5 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/0.2733, allocations: 185.7 kB / 444.7 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003187/0.2736, allocations: 222.6 kB / 444.9 MB, free: 5.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2736, allocations: 4 kB / 444.9 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2736, allocations: 0 / 444.9 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2736, allocations: 0 / 444.9 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.2772, allocations: 2.15 MB / 447.1 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.2772, allocations: 0 / 447.1 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.2776, allocations: 87.94 kB / 447.2 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.2778, allocations: 56.81 kB / 447.2 MB, free: 2.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.2779, allocations: 8 kB / 447.2 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.2793, allocations: 1.584 MB / 448.8 MB, free: 1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2793, allocations: 7.969 kB / 448.8 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/0.2907, allocations: 7.527 MB / 456.3 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008374/0.2915, allocations: 442.6 kB / 456.8 MB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.2917, allocations: 15.98 kB / 456.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005749/0.2923, allocations: 52.05 kB / 456.8 MB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.2925, allocations: 35.94 kB / 456.9 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.2925, allocations: 15.94 kB / 456.9 MB, free: 8.562 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003224/0.2957, allocations: 2.259 MB / 459.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2957, allocations: 0 / 459.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001329/0.2971, allocations: 399.5 kB / 459.5 MB, free: 5.895 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 (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 Backend phase and start with SimCode phase: time 0.00127/0.2984, allocations: 0.5704 MB / 460.1 MB, free: 5.531 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.2998, allocations: 0.6006 MB / 460.7 MB, free: 4.918 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2998, allocations: 3.938 kB / 460.7 MB, free: 4.914 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006923/0.3005, allocations: 363.5 kB / 461.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.302, allocations: 275.2 kB / 461.3 MB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00745/0.3095, allocations: 4.555 MB / 465.9 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.3106, allocations: 1.505 MB / 467.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007688/0.3114, allocations: 311.1 kB / 467.7 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.3117, allocations: 91.44 kB / 467.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3117, allocations: 0 / 467.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of Templates: time 0.03418/0.3459, allocations: 20.1 MB / 487.9 MB, free: 9.711 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches