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.001472/0.001472, allocations: 110.3 kB / 17.06 MB, free: 6 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.001728/0.001728, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 48.03 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2798, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006626/0.2865, allocations: 5.499 MB / 406.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.2894, allocations: 1.715 MB / 407.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003178/0.2897, allocations: 15.94 kB / 407.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.2907, allocations: 0.5252 MB / 408.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000654/0.2915, allocations: 346.2 kB / 408.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007339/0.2922, allocations: 365.5 kB / 409.2 MB, free: 432 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009284/0.2931, allocations: 0.9003 MB / 410.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004846/0.2936, allocations: 340.8 kB / 410.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003805/0.294, allocations: 370.8 kB / 410.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004538/0.2945, allocations: 434.4 kB / 411.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.2946, allocations: 80 kB / 411.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.2948, allocations: 120 kB / 411.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004805/0.2953, allocations: 0.5844 MB / 412 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006946/0.296, allocations: 0.7415 MB / 412.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002167/0.2982, allocations: 2.114 MB / 414.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.2982, allocations: 0 / 414.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.2982, allocations: 0 / 414.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.2982, allocations: 4 kB / 414.8 MB, free: 10.73 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.003667/0.3019, allocations: 2.064 MB / 416.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.302, allocations: 12.02 kB / 416.9 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.3023, allocations: 186.6 kB / 417.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002104/0.3044, allocations: 1.501 MB / 418.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3045, allocations: 66.7 kB / 418.6 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.3046, allocations: 44 kB / 418.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3059, allocations: 0.5854 MB / 419.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.3059, allocations: 7.938 kB / 419.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.498e-05/0.306, allocations: 24 kB / 419.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.306, allocations: 12 kB / 419.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008518/0.3069, allocations: 343.7 kB / 419.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005546/0.3124, allocations: 3.242 MB / 422.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.3136, allocations: 375.1 kB / 423.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.3141, allocations: 192.6 kB / 423.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.3142, allocations: 0 / 423.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.3142, allocations: 46.55 kB / 423.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.3142, allocations: 0 / 423.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002126/0.3164, allocations: 0.6885 MB / 424.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.3165, allocations: 217.6 kB / 424.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003781/0.3203, allocations: 2.884 MB / 427.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.3204, allocations: 33.7 kB / 427.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007613/0.3211, allocations: 0.7814 MB / 428.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.869e-05/0.3212, allocations: 78.98 kB / 428.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.3214, allocations: 65.94 kB / 428.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3215, allocations: 322 kB / 428.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.3219, allocations: 124.6 kB / 428.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/0.3224, allocations: 284.9 kB / 429 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000739/0.3232, allocations: 358.1 kB / 429.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3232, allocations: 4 kB / 429.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001154/0.3243, allocations: 0.5564 MB / 429.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3244, allocations: 4 kB / 429.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3244, allocations: 4 kB / 429.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003172/0.3247, allocations: 77 kB / 429.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.325, allocations: 71.89 kB / 430 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.3271, allocations: 1.728 MB / 431.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.3276, allocations: 55.67 kB / 431.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.3276, allocations: 19.98 kB / 431.8 MB, free: 9.02 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.0009198/0.3286, allocations: 0.5756 MB / 432.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.3288, allocations: 165.9 kB / 432.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.3301, allocations: 0.5103 MB / 433.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3301, allocations: 4 kB / 433.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.3301, allocations: 0 / 433.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3301, allocations: 3.984 kB / 433.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.3329, allocations: 1.682 MB / 434.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3329, allocations: 4.125 kB / 434.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.3332, allocations: 47.91 kB / 434.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001714/0.3333, allocations: 44.83 kB / 434.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.3334, allocations: 12.03 kB / 434.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/0.335, allocations: 1.673 MB / 436.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.335, allocations: 3.984 kB / 436.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.3365, allocations: 0.7063 MB / 437.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005783/0.337, allocations: 375 kB / 437.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.3372, allocations: 12 kB / 437.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.3377, allocations: 43.95 kB / 437.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/0.3378, allocations: 31.95 kB / 437.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3378, allocations: 7.938 kB / 437.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003085/0.3409, allocations: 2.063 MB / 439.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3409, allocations: 4 kB / 439.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000884/0.3418, allocations: 211.5 kB / 440 MB, free: 0.5469 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.0008874/0.3427, allocations: 353 kB / 440.3 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.3439, allocations: 438.6 kB / 440.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3439, allocations: 4 kB / 440.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000539/0.3444, allocations: 267.2 kB / 441 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.3456, allocations: 232.7 kB / 441.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/0.3512, allocations: 3.051 MB / 444.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.3524, allocations: 1.347 MB / 445.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005213/0.3529, allocations: 245.7 kB / 445.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002495/0.3532, allocations: 79.44 kB / 446 MB, free: 10.6 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3532, allocations: 0 / 446 MB, free: 10.6 MB / 366.1 MB Notification: Performance of Templates: time 0.02937/0.3826, allocations: 15.74 MB / 461.7 MB, free: 10.95 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/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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches