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.001559/0.001559, allocations: 111 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002224/0.002224, allocations: 207.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2442, allocations: 50.53 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005548/0.2498, allocations: 4.023 MB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.253, allocations: 2.072 MB / 416 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.2533, allocations: 11.94 kB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.2545, allocations: 0.5876 MB / 416.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006202/0.2552, allocations: 386 kB / 417 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.2558, allocations: 287 kB / 417.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009696/0.2568, allocations: 0.982 MB / 418.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.2573, allocations: 356.5 kB / 418.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004043/0.2577, allocations: 390.6 kB / 419 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005654/0.2583, allocations: 494.3 kB / 419.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.2584, allocations: 83.98 kB / 419.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.2587, allocations: 136 kB / 419.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003684/0.2591, allocations: 478.7 kB / 420.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.2596, allocations: 0.6367 MB / 420.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001399/0.261, allocations: 1.757 MB / 422.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.261, allocations: 0 / 422.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.261, allocations: 0 / 422.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.2611, allocations: 4 kB / 422.6 MB, free: 4.914 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.002676/0.2637, allocations: 1.818 MB / 424.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2638, allocations: 12.03 kB / 424.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.264, allocations: 166.9 kB / 424.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.2658, allocations: 1.177 MB / 425.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.2659, allocations: 92.97 kB / 425.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.402e-05/0.266, allocations: 55.94 kB / 425.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.267, allocations: 0.6634 MB / 426.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.267, allocations: 0 / 426.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.425e-05/0.2671, allocations: 24 kB / 426.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2671, allocations: 15.94 kB / 426.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007703/0.2679, allocations: 435.7 kB / 427 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004021/0.2719, allocations: 2.856 MB / 429.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009596/0.2729, allocations: 436.6 kB / 430.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006228/0.2735, allocations: 316.6 kB / 430.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.2736, allocations: 12 kB / 430.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.2736, allocations: 42.55 kB / 430.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.2736, allocations: 0 / 430.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001796/0.2754, allocations: 0.7637 MB / 431.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.2756, allocations: 265 kB / 431.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.2781, allocations: 2.235 MB / 433.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.2782, allocations: 37.69 kB / 433.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005433/0.2787, allocations: 0.6468 MB / 434.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.838e-05/0.2788, allocations: 106.5 kB / 434.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.279, allocations: 77.98 kB / 434.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2791, allocations: 321.9 kB / 435.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.2794, allocations: 164.6 kB / 435.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.2799, allocations: 296.8 kB / 435.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006701/0.2806, allocations: 396.9 kB / 435.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2806, allocations: 0 / 435.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001271/0.2818, allocations: 0.6443 MB / 436.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2819, allocations: 8 kB / 436.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.2819, allocations: 4 kB / 436.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/0.2822, allocations: 68.75 kB / 436.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.2826, allocations: 95.95 kB / 436.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.2842, allocations: 1.763 MB / 438.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.2847, allocations: 59.5 kB / 438.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.2847, allocations: 20.09 kB / 438.6 MB, free: 4.238 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.0005451/0.2853, allocations: 481.6 kB / 439 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.2854, allocations: 138.3 kB / 439.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.2857, allocations: 165.6 kB / 439.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2857, allocations: 3.938 kB / 439.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2857, allocations: 0 / 439.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006127/0.2863, allocations: 331.2 kB / 439.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.2864, allocations: 4 kB / 439.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.2869, allocations: 47.95 kB / 439.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.287, allocations: 27.97 kB / 439.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001406/0.2884, allocations: 0.5873 MB / 440.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001151/0.2896, allocations: 0.8308 MB / 441.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002906/0.2899, allocations: 163.9 kB / 441.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001921/0.2918, allocations: 1.616 MB / 442.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Backend: time 4.61e-07/0.2918, allocations: 0 / 442.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.2944, allocations: 1.017 MB / 444 MB, free: 15 MB / 366.1 MB Notification: Performance of SimCode: time 0.003994/0.2984, allocations: 3.089 MB / 447 MB, free: 11.86 MB / 366.1 MB Notification: Performance of Templates: time 0.02459/0.323, allocations: 15.01 MB / 462 MB, free: 12.95 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