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.001344/0.001344, allocations: 112.8 kB / 17.68 MB, free: 5.355 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.001085/0.001085, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.37/1.37, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 54.78 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.09009, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005224/0.09534, allocations: 3.977 MB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.09813, allocations: 1.909 MB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.09849, allocations: 19.94 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.09968, allocations: 0.5798 MB / 358 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006387/0.1004, allocations: 342.3 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.101, allocations: 290.5 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.1021, allocations: 0.9819 MB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004629/0.1025, allocations: 360.5 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.1029, allocations: 374.8 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005091/0.1034, allocations: 0.4905 MB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.1036, allocations: 80 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.1038, allocations: 131.9 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.1041, allocations: 470.7 kB / 361.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005065/0.1047, allocations: 0.629 MB / 362.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.106, allocations: 1.752 MB / 363.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.106, allocations: 4 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1061, allocations: 0 / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1061, allocations: 0 / 363.8 MB, free: 7.266 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.002715/0.1088, allocations: 1.814 MB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1088, allocations: 12.03 kB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.109, allocations: 155.1 kB / 365.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.1109, allocations: 1.185 MB / 367 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.111, allocations: 88.97 kB / 367.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.549e-05/0.1111, allocations: 51.94 kB / 367.1 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000994/0.1121, allocations: 0.6635 MB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.1121, allocations: 3.938 kB / 367.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.964e-05/0.1122, allocations: 24 kB / 367.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1122, allocations: 12 kB / 367.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007769/0.113, allocations: 435.7 kB / 368.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1545/0.2675, allocations: 2.856 MB / 371.1 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.2686, allocations: 420.4 kB / 371.5 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006295/0.2692, allocations: 312.5 kB / 371.8 MB, free: 24.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.2693, allocations: 13.17 kB / 371.9 MB, free: 24.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.2693, allocations: 38.91 kB / 371.9 MB, free: 24.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.054e-06/0.2693, allocations: 1.344 kB / 371.9 MB, free: 24.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001875/0.2712, allocations: 0.7703 MB / 372.7 MB, free: 24.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.2713, allocations: 267.3 kB / 372.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002808/0.2741, allocations: 2.23 MB / 375.2 MB, free: 23.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.2741, allocations: 33.16 kB / 375.2 MB, free: 23.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004165/0.2746, allocations: 0.6322 MB / 375.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.063e-05/0.2746, allocations: 111 kB / 375.9 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.2748, allocations: 80.14 kB / 376 MB, free: 22.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.987e-05/0.2748, allocations: 319 kB / 376.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/0.2752, allocations: 162.7 kB / 376.5 MB, free: 22.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004336/0.2756, allocations: 303.6 kB / 376.8 MB, free: 22.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006702/0.2763, allocations: 397.2 kB / 377.2 MB, free: 21.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.2763, allocations: 5.094 kB / 377.2 MB, free: 21.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001431/0.2778, allocations: 0.6385 MB / 377.8 MB, free: 21.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.2778, allocations: 5.406 kB / 377.8 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.2778, allocations: 7.062 kB / 377.8 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.2781, allocations: 71.42 kB / 377.9 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.2785, allocations: 91.47 kB / 378 MB, free: 21.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.28, allocations: 1.765 MB / 379.7 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.2805, allocations: 55.83 kB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.2805, allocations: 12 kB / 379.8 MB, free: 19.95 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.0006092/0.2811, allocations: 499 kB / 380.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/0.2813, allocations: 133.8 kB / 380.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.2815, allocations: 159.1 kB / 380.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2815, allocations: 4.25 kB / 380.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2815, allocations: 1.781 kB / 380.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2815, allocations: 9.141 kB / 380.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.2848, allocations: 1.655 MB / 382.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.2848, allocations: 1.156 kB / 382.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.2851, allocations: 67.59 kB / 382.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.2854, allocations: 63.08 kB / 382.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.2854, allocations: 8.672 kB / 382.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.2865, allocations: 1.724 MB / 384.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.2866, allocations: 1.219 kB / 384.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.288, allocations: 0.798 MB / 384.9 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.2887, allocations: 330.3 kB / 385.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.2888, allocations: 13.39 kB / 385.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/0.2893, allocations: 47.72 kB / 385.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.013e-05/0.2894, allocations: 26.5 kB / 385.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.2894, allocations: 12.09 kB / 385.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002083/0.2915, allocations: 1.601 MB / 386.9 MB, free: 16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2915, allocations: 0 / 386.9 MB, free: 16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007549/0.2923, allocations: 209.3 kB / 387.1 MB, free: 15.96 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.001043/0.2933, allocations: 478.5 kB / 387.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.2944, allocations: 0.4948 MB / 388.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2944, allocations: 1.438 kB / 388.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.2949, allocations: 316 kB / 388.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008806/0.2958, allocations: 203.6 kB / 388.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.2991, allocations: 2.636 MB / 391.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007058/0.2998, allocations: 1.259 MB / 392.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004608/0.3003, allocations: 218.2 kB / 392.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.3005, allocations: 74.16 kB / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3005, allocations: 0 / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Templates: time 0.02353/0.324, allocations: 13.96 MB / 406.7 MB, free: 1.109 MB / 302.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 -s gbode -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