Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002247/0.002246, allocations: 111.8 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002698/0.002699, allocations: 181.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.148/3.148, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 43.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6926/0.6945, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01493/0.7095, allocations: 5.5 MB / 406.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006166/0.7158, allocations: 1.718 MB / 408.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.7171, allocations: 15.94 kB / 408.6 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.7198, allocations: 0.5175 MB / 409.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.7221, allocations: 350.1 kB / 409.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.7243, allocations: 373.4 kB / 409.8 MB, free: 412 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.7269, allocations: 0.9021 MB / 410.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.7281, allocations: 340.8 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009184/0.7291, allocations: 358.8 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.7302, allocations: 442.4 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.7305, allocations: 80 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005595/0.731, allocations: 123.9 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008462/0.7319, allocations: 0.5766 MB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.7337, allocations: 0.7454 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008424/0.7421, allocations: 2.11 MB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.7422, allocations: 0 / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7422, allocations: 0 / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.382e-05/0.7423, allocations: 0 / 415.5 MB, free: 10.72 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.009357/0.7517, allocations: 2.079 MB / 417.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000112/0.7518, allocations: 8.031 kB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.7532, allocations: 186.6 kB / 417.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005553/0.7588, allocations: 1.498 MB / 419.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002463/0.7591, allocations: 70.69 kB / 419.3 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.7594, allocations: 44 kB / 419.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.7615, allocations: 0.5815 MB / 420 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.7616, allocations: 0 / 420 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.7617, allocations: 28 kB / 420 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.7618, allocations: 15.94 kB / 420 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.7631, allocations: 343.8 kB / 420.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009386/0.7725, allocations: 3.242 MB / 423.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.7745, allocations: 378.6 kB / 423.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004875/0.7794, allocations: 184.7 kB / 424.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.039e-05/0.7795, allocations: 4 kB / 424.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.877e-05/0.7796, allocations: 38.56 kB / 424.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 5.741e-06/0.7796, allocations: 0 / 424.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.003601/0.7832, allocations: 0.6945 MB / 424.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000242/0.7835, allocations: 209.6 kB / 425.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009567/0.7931, allocations: 2.888 MB / 428 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.7933, allocations: 33.7 kB / 428 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001633/0.795, allocations: 0.7853 MB / 428.8 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.7952, allocations: 70.92 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003483/0.7956, allocations: 69.92 kB / 428.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.7958, allocations: 322 kB / 429.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006181/0.7965, allocations: 120.6 kB / 429.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007074/0.7972, allocations: 292.8 kB / 429.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.7983, allocations: 353.8 kB / 430 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.7984, allocations: 4 kB / 430 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002737/0.8011, allocations: 0.5587 MB / 430.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.8012, allocations: 4 kB / 430.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.8012, allocations: 4 kB / 430.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004732/0.8017, allocations: 68.98 kB / 430.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.8022, allocations: 75.84 kB / 430.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003039/0.8052, allocations: 1.724 MB / 432.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.8067, allocations: 59.66 kB / 432.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.037e-05/0.8068, allocations: 19.94 kB / 432.5 MB, free: 9.008 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.001896/0.8087, allocations: 0.5816 MB / 433.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.8098, allocations: 165.9 kB / 433.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/0.8127, allocations: 0.5103 MB / 433.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.8127, allocations: 4 kB / 433.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8127, allocations: 0 / 433.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.8127, allocations: 0 / 433.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.8246, allocations: 1.693 MB / 435.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.8246, allocations: 4 kB / 435.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.825, allocations: 39.97 kB / 435.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003261/0.8254, allocations: 48.83 kB / 435.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.8254, allocations: 3.938 kB / 435.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.8284, allocations: 1.681 MB / 437.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.8284, allocations: 4.031 kB / 437.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003006/0.8314, allocations: 0.7024 MB / 437.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/0.8332, allocations: 379 kB / 438.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007108/0.834, allocations: 7.938 kB / 438.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.8351, allocations: 51.89 kB / 438.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.8354, allocations: 31.95 kB / 438.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.8354, allocations: 4 kB / 438.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.006787/0.8422, allocations: 2.063 MB / 440.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.8423, allocations: 0 / 440.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002362/0.8446, allocations: 211.5 kB / 440.7 MB, free: 0.5352 MB / 350.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.00174/0.8464, allocations: 353.2 kB / 441 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.8484, allocations: 441.5 kB / 441.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.8484, allocations: 7.938 kB / 441.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007951/0.8492, allocations: 263.2 kB / 441.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.8524, allocations: 222.5 kB / 441.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/0.8674, allocations: 3.158 MB / 445.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.8698, allocations: 1.355 MB / 446.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007084/0.8705, allocations: 83.44 kB / 446.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of SimCode: time 2.164e-06/0.8706, allocations: 0 / 446.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of Templates: time 0.07772/0.9483, allocations: 24.82 MB / 471.3 MB, free: 1.906 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches