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.001584/0.001584, allocations: 107.9 kB / 17.16 MB, free: 6.324 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.001921/0.001921, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.263/2.263, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 51.55 kB / 300.6 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1695, allocations: 49.45 MB / 350.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.009866/0.1794, allocations: 3.999 MB / 354.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005483/0.185, allocations: 1.882 MB / 355.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006965/0.1858, allocations: 15.94 kB / 356 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002587/0.1885, allocations: 0.5529 MB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001536/0.1901, allocations: 310.7 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.1915, allocations: 264 kB / 357.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002138/0.1936, allocations: 0.9311 MB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008312/0.1945, allocations: 312 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007509/0.1953, allocations: 342.7 kB / 358.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008844/0.1962, allocations: 466.2 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.1963, allocations: 48 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004311/0.1968, allocations: 99.98 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005507/0.1973, allocations: 442.7 kB / 359.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009821/0.1983, allocations: 0.586 MB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002289/0.2007, allocations: 1.415 MB / 361.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.2007, allocations: 4 kB / 361.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.759e-06/0.2007, allocations: 0 / 361.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.444e-05/0.2008, allocations: 3.938 kB / 361.7 MB, free: 9.176 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.005954/0.2067, allocations: 1.81 MB / 363.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.09e-05/0.2068, allocations: 12.03 kB / 363.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005195/0.2074, allocations: 155.1 kB / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003046/0.2104, allocations: 1.169 MB / 364.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005381/0.211, allocations: 140.8 kB / 365 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.2112, allocations: 51.94 kB / 365 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/0.2133, allocations: 0.6674 MB / 365.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.2134, allocations: 0 / 365.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.2135, allocations: 27.98 kB / 365.7 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.2135, allocations: 12 kB / 365.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2151, allocations: 447.7 kB / 366.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008085/0.2232, allocations: 2.894 MB / 369 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.2251, allocations: 450.5 kB / 369.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.2263, allocations: 324.7 kB / 369.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/0.2264, allocations: 0 / 369.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.263e-05/0.2264, allocations: 38.56 kB / 369.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 4.117e-06/0.2265, allocations: 4 kB / 369.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.2985/0.5249, allocations: 0.7948 MB / 370.6 MB, free: 25.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.5251, allocations: 262.1 kB / 370.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005061/0.5301, allocations: 2.228 MB / 373.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.5303, allocations: 39.28 kB / 373.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008489/0.5312, allocations: 0.6385 MB / 373.8 MB, free: 24.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.5314, allocations: 104.8 kB / 373.9 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.5316, allocations: 79.34 kB / 374 MB, free: 24.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.5317, allocations: 329.4 kB / 374.3 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004995/0.5322, allocations: 165.8 kB / 374.5 MB, free: 23.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005379/0.5328, allocations: 316.7 kB / 374.8 MB, free: 23.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008407/0.5336, allocations: 416.8 kB / 375.2 MB, free: 23.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.5337, allocations: 1.062 kB / 375.2 MB, free: 23.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001838/0.5355, allocations: 0.6622 MB / 375.8 MB, free: 22.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.5355, allocations: 11.91 kB / 375.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.5356, allocations: 3.453 kB / 375.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003614/0.5359, allocations: 68.59 kB / 375.9 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.5364, allocations: 97.86 kB / 376 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.5379, allocations: 1.601 MB / 377.6 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007415/0.5387, allocations: 60.47 kB / 377.7 MB, free: 21.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.5387, allocations: 17.14 kB / 377.7 MB, free: 21.45 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.0009485/0.5397, allocations: 491.1 kB / 378.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.5399, allocations: 134.9 kB / 378.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/0.5402, allocations: 164 kB / 378.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.5402, allocations: 3.656 kB / 378.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.5403, allocations: 3.938 kB / 378.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5403, allocations: 5.234 kB / 378.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.544, allocations: 1.677 MB / 380.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.5441, allocations: 0.9375 kB / 380.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.5445, allocations: 78.45 kB / 380.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002625/0.5448, allocations: 60.14 kB / 380.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.5448, allocations: 7.766 kB / 380.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.5466, allocations: 1.555 MB / 381.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5466, allocations: 6.75 kB / 381.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.5486, allocations: 0.8288 MB / 382.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006447/0.5493, allocations: 332.4 kB / 383 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.5494, allocations: 15.56 kB / 383 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005447/0.55, allocations: 50.91 kB / 383.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.5501, allocations: 32.59 kB / 383.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.5502, allocations: 13.45 kB / 383.1 MB, free: 18.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002786/0.553, allocations: 1.6 MB / 384.7 MB, free: 17.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.553, allocations: 0 / 384.7 MB, free: 17.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001172/0.5542, allocations: 204.5 kB / 384.9 MB, free: 17.62 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.001273/0.5554, allocations: 469.5 kB / 385.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.557, allocations: 0.5128 MB / 385.9 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.557, allocations: 2.984 kB / 385.9 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006981/0.5577, allocations: 322.4 kB / 386.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.5591, allocations: 202.7 kB / 386.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005855/0.565, allocations: 3.076 MB / 389.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009895/0.566, allocations: 1.256 MB / 390.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/0.5663, allocations: 74.36 kB / 390.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5663, allocations: 0 / 390.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of Templates: time 0.0321/0.5984, allocations: 20.9 MB / 411.7 MB, free: 12.1 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