Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 104 kB / 17.59 MB, free: 5.559 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.001034/0.001034, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.368/1.368, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 51.17 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09313, allocations: 49.44 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005795/0.09896, allocations: 3.992 MB / 354.7 MB, free: 432 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003217/0.1022, allocations: 1.905 MB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.1027, allocations: 12 kB / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.1041, allocations: 0.5798 MB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008713/0.105, allocations: 346.2 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007574/0.1058, allocations: 293.4 kB / 357.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.107, allocations: 0.9701 MB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006016/0.1077, allocations: 364.5 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.1082, allocations: 378.7 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000712/0.109, allocations: 498.2 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.1092, allocations: 80 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003363/0.1095, allocations: 140 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003961/0.1099, allocations: 470.7 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007414/0.1107, allocations: 0.629 MB / 361.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001637/0.1123, allocations: 1.725 MB / 363 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1123, allocations: 7.938 kB / 363.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1123, allocations: 0 / 363.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.5e-05/0.1124, allocations: 4 kB / 363.1 MB, free: 8.043 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002896/0.1153, allocations: 1.81 MB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1153, allocations: 16.03 kB / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002262/0.1155, allocations: 155.1 kB / 365 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.1171, allocations: 1.169 MB / 366.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003289/0.1175, allocations: 132.9 kB / 366.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/0.1176, allocations: 51.94 kB / 366.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1187, allocations: 0.6751 MB / 367.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1188, allocations: 0 / 367.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.348e-05/0.1188, allocations: 24 kB / 367.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.1189, allocations: 12 kB / 367.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008445/0.1197, allocations: 443.7 kB / 367.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.1239, allocations: 2.891 MB / 370.4 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.158/0.2819, allocations: 449.5 kB / 370.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008583/0.2828, allocations: 326 kB / 371.2 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.2829, allocations: 3.688 kB / 371.2 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.2829, allocations: 42.14 kB / 371.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.207e-06/0.2829, allocations: 0.5625 kB / 371.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002273/0.2852, allocations: 0.8034 MB / 372 MB, free: 24.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.2853, allocations: 263 kB / 372.3 MB, free: 24.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.2884, allocations: 2.23 MB / 374.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.243e-05/0.2885, allocations: 33.92 kB / 374.5 MB, free: 23.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000458/0.289, allocations: 0.6358 MB / 375.2 MB, free: 23.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.873e-05/0.2891, allocations: 106.8 kB / 375.3 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.2892, allocations: 77.25 kB / 375.4 MB, free: 23.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.568e-05/0.2893, allocations: 322.2 kB / 375.7 MB, free: 23.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.2897, allocations: 171.5 kB / 375.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004819/0.2902, allocations: 318 kB / 376.2 MB, free: 22.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.2909, allocations: 416.4 kB / 376.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2909, allocations: 1.125 kB / 376.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001549/0.2925, allocations: 0.6587 MB / 377.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.2925, allocations: 7.359 kB / 377.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2925, allocations: 6.266 kB / 377.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002923/0.2928, allocations: 72.36 kB / 377.3 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.2933, allocations: 96.58 kB / 377.4 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.2947, allocations: 1.772 MB / 379.2 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/0.2952, allocations: 61.62 kB / 379.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.2953, allocations: 15.66 kB / 379.2 MB, free: 20.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0006764/0.2959, allocations: 495.4 kB / 379.7 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.2962, allocations: 134.3 kB / 379.9 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/0.2964, allocations: 165.5 kB / 380 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2964, allocations: 5.594 kB / 380 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2964, allocations: 1.094 kB / 380 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2964, allocations: 5.625 kB / 380 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.2992, allocations: 1.679 MB / 381.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2992, allocations: 0 / 381.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.2996, allocations: 74.83 kB / 381.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.2998, allocations: 60.7 kB / 381.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.2998, allocations: 8.609 kB / 381.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.301, allocations: 1.723 MB / 383.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.301, allocations: 1.75 kB / 383.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.3027, allocations: 0.836 MB / 384.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005011/0.3032, allocations: 323.4 kB / 384.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.3033, allocations: 9.297 kB / 384.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.3038, allocations: 54.36 kB / 384.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3039, allocations: 35.44 kB / 384.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.304, allocations: 9.047 kB / 384.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002336/0.3063, allocations: 1.599 MB / 386.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3063, allocations: 1.062 kB / 386.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008272/0.3071, allocations: 205.1 kB / 386.6 MB, free: 16.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.001185/0.3083, allocations: 476.7 kB / 387.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.3099, allocations: 0.5446 MB / 387.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3099, allocations: 1.906 kB / 387.7 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006264/0.3106, allocations: 329 kB / 388 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3117, allocations: 204.5 kB / 388.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/0.3157, allocations: 2.737 MB / 390.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006672/0.3164, allocations: 1.247 MB / 392.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.3166, allocations: 79.41 kB / 392.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3166, allocations: 0 / 392.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Templates: time 0.02659/0.3432, allocations: 20.88 MB / 413.1 MB, free: 10.8 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches