Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 202.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 71.88 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.221, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004954/0.226, allocations: 4.027 MB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.2286, allocations: 2.068 MB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.2289, allocations: 8 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.23, allocations: 0.5951 MB / 416.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005626/0.2305, allocations: 394.1 kB / 417 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005268/0.2311, allocations: 283.1 kB / 417.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000915/0.232, allocations: 0.9898 MB / 418.3 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004315/0.2324, allocations: 348.5 kB / 418.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.2328, allocations: 390.6 kB / 419 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005126/0.2333, allocations: 494.2 kB / 419.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.2334, allocations: 84 kB / 419.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.2337, allocations: 136 kB / 419.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003421/0.234, allocations: 482.7 kB / 420.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005078/0.2345, allocations: 0.6329 MB / 420.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.236, allocations: 1.762 MB / 422.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.236, allocations: 0 / 422.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2361, allocations: 3.938 kB / 422.6 MB, free: 4.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.2361, allocations: 0 / 422.6 MB, free: 4.887 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00258/0.2387, allocations: 1.872 MB / 424.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2387, allocations: 12.03 kB / 424.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.2389, allocations: 167.9 kB / 424.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.2405, allocations: 1.194 MB / 425.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.2406, allocations: 92.97 kB / 425.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.2407, allocations: 55.89 kB / 426 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.2418, allocations: 0.6634 MB / 426.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.2418, allocations: 0 / 426.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/0.2418, allocations: 20 kB / 426.6 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.2419, allocations: 12 kB / 426.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/0.2426, allocations: 435.7 kB / 427.1 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003946/0.2466, allocations: 2.872 MB / 429.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/0.2476, allocations: 430.5 kB / 430.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000626/0.2482, allocations: 316.6 kB / 430.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.2482, allocations: 0 / 430.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.2483, allocations: 38.56 kB / 430.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.2483, allocations: 0 / 430.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001836/0.2501, allocations: 0.78 MB / 431.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2503, allocations: 269 kB / 431.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.2529, allocations: 2.243 MB / 434 MB, free: 9.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.2529, allocations: 37.64 kB / 434 MB, free: 9.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005335/0.2535, allocations: 0.6435 MB / 434.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.703e-05/0.2535, allocations: 119 kB / 434.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.2537, allocations: 74.03 kB / 434.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.2538, allocations: 325.9 kB / 435.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.2541, allocations: 164.6 kB / 435.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.2546, allocations: 300.8 kB / 435.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006923/0.2553, allocations: 389 kB / 436 MB, free: 6.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2553, allocations: 0 / 436 MB, free: 6.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001257/0.2566, allocations: 0.6528 MB / 436.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.2566, allocations: 7.984 kB / 436.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2566, allocations: 4 kB / 436.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.2569, allocations: 68.89 kB / 436.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.2573, allocations: 91.88 kB / 436.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.2589, allocations: 1.767 MB / 438.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.2594, allocations: 67.77 kB / 438.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.2594, allocations: 12 kB / 438.7 MB, free: 4.113 MB / 350.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.0005248/0.2599, allocations: 485.6 kB / 439.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.2601, allocations: 139.1 kB / 439.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.2603, allocations: 157.6 kB / 439.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2603, allocations: 7.938 kB / 439.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2603, allocations: 0 / 439.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004581/0.2608, allocations: 344 kB / 439.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.2609, allocations: 8 kB / 439.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/0.2614, allocations: 43.95 kB / 439.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/0.2615, allocations: 27.91 kB / 439.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001415/0.2629, allocations: 0.5835 MB / 440.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001148/0.2641, allocations: 0.8316 MB / 441.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003045/0.2644, allocations: 167.9 kB / 441.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.2663, allocations: 1.608 MB / 443.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Backend: time 5.01e-07/0.2663, allocations: 0 / 443.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002449/0.2688, allocations: 1.036 MB / 444.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of SimCode: time 0.003588/0.2724, allocations: 3.124 MB / 447.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Templates: time 0.02321/0.2956, allocations: 15 MB / 462.2 MB, free: 12.77 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches