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.001309/0.001309, allocations: 121 kB / 18.41 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 204.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 60.25 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09377, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006742/0.1005, allocations: 5.546 MB / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002778/0.1033, allocations: 1.878 MB / 366.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.1036, allocations: 15.94 kB / 366.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009591/0.1046, allocations: 0.5175 MB / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006339/0.1053, allocations: 393.9 kB / 367.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.106, allocations: 358.8 kB / 367.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008729/0.1068, allocations: 0.9003 MB / 368.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004679/0.1073, allocations: 352.8 kB / 368.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000341/0.1077, allocations: 362.8 kB / 369.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004197/0.1081, allocations: 446.4 kB / 369.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.874e-05/0.1082, allocations: 79.94 kB / 369.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.1084, allocations: 124 kB / 369.8 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003773/0.1088, allocations: 0.5805 MB / 370.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005374/0.1093, allocations: 0.7376 MB / 371.1 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.169/0.2783, allocations: 2.114 MB / 373.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.2784, allocations: 3.5 kB / 373.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2784, allocations: 0 / 373.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001126/0.2785, allocations: 1.547 kB / 373.3 MB, free: 13.85 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.004586/0.2831, allocations: 2.089 MB / 375.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2832, allocations: 10.41 kB / 375.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003044/0.2835, allocations: 186.1 kB / 375.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002523/0.286, allocations: 1.502 MB / 377 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.198e-05/0.2861, allocations: 67.12 kB / 377.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.621e-05/0.2862, allocations: 50.62 kB / 377.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009821/0.2872, allocations: 0.5815 MB / 377.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2872, allocations: 4.688 kB / 377.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.5e-05/0.2873, allocations: 19.56 kB / 377.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.2873, allocations: 12.81 kB / 377.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006676/0.288, allocations: 349.3 kB / 378.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004496/0.2925, allocations: 3.233 MB / 381.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.2935, allocations: 380.9 kB / 381.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.294, allocations: 181.5 kB / 381.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.294, allocations: 9.719 kB / 381.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.294, allocations: 37.58 kB / 381.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.294, allocations: 0 / 381.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001758/0.2958, allocations: 0.6995 MB / 382.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.2959, allocations: 211 kB / 382.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/0.2995, allocations: 2.898 MB / 385.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.2996, allocations: 32.14 kB / 385.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.3002, allocations: 0.7827 MB / 386.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.834e-05/0.3002, allocations: 79.45 kB / 386.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.3003, allocations: 68.89 kB / 386.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.911e-05/0.3004, allocations: 318 kB / 387 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.3007, allocations: 122.1 kB / 387.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.3011, allocations: 293.7 kB / 387.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.3017, allocations: 359.6 kB / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3017, allocations: 3.125 kB / 387.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001127/0.3029, allocations: 0.5602 MB / 388.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.3029, allocations: 11.38 kB / 388.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3029, allocations: 3.312 kB / 388.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.3032, allocations: 52.09 kB / 388.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.3035, allocations: 75.3 kB / 388.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.3047, allocations: 1.731 MB / 390.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005356/0.3052, allocations: 64.86 kB / 390.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.3053, allocations: 15.72 kB / 390.3 MB, free: 5.48 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 (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.0007001/0.306, allocations: 0.5851 MB / 390.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.3062, allocations: 165.3 kB / 391 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.3073, allocations: 0.5051 MB / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3073, allocations: 4.906 kB / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3073, allocations: 0 / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3073, allocations: 1.5 kB / 391.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3103, allocations: 1.697 MB / 393.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3103, allocations: 1.375 kB / 393.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.3105, allocations: 57.39 kB / 393.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/0.3107, allocations: 46.56 kB / 393.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3107, allocations: 5.375 kB / 393.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3118, allocations: 1.665 MB / 395 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3118, allocations: 9.062 kB / 395 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.3132, allocations: 0.7101 MB / 395.7 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008092/0.314, allocations: 384.3 kB / 396.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.3142, allocations: 10.73 kB / 396.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/0.3148, allocations: 46.3 kB / 396.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3149, allocations: 30.64 kB / 396.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3149, allocations: 8.312 kB / 396.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002809/0.3177, allocations: 2.073 MB / 398.3 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3177, allocations: 0 / 398.3 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008549/0.3186, allocations: 195.2 kB / 398.5 MB, free: 0.7461 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 (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.0007798/0.3194, allocations: 359.3 kB / 398.8 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009722/0.3203, allocations: 441.2 kB / 399.3 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3204, allocations: 2.875 kB / 399.3 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.3208, allocations: 268.4 kB / 399.5 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.3219, allocations: 218.2 kB / 399.7 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/0.3269, allocations: 3.003 MB / 402.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.3281, allocations: 1.362 MB / 404.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007349/0.3288, allocations: 237.7 kB / 404.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.3291, allocations: 79.44 kB / 404.4 MB, free: 12 MB / 318.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3291, allocations: 4 kB / 404.4 MB, free: 12 MB / 318.1 MB Notification: Performance of Templates: time 0.03108/0.3602, allocations: 15.55 MB / 420 MB, free: 12.55 MB / 334.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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