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.001105/0.001105, allocations: 117.7 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.001089/0.001089, allocations: 208.8 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.398/1.398, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2503, allocations: 50.54 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005207/0.2556, allocations: 4.02 MB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003124/0.2587, allocations: 2.064 MB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.259, allocations: 11.94 kB / 416 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.2602, allocations: 0.5953 MB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000649/0.2608, allocations: 386.1 kB / 417 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.2615, allocations: 291.1 kB / 417.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.2625, allocations: 0.982 MB / 418.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004809/0.263, allocations: 356.5 kB / 418.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.2635, allocations: 390.6 kB / 419 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005337/0.264, allocations: 498.2 kB / 419.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.2641, allocations: 80 kB / 419.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.2644, allocations: 136 kB / 419.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.2647, allocations: 482.7 kB / 420.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005951/0.2653, allocations: 0.6251 MB / 420.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.2671, allocations: 1.761 MB / 422.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2671, allocations: 0 / 422.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.701e-06/0.2671, allocations: 0 / 422.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.2671, allocations: 7.938 kB / 422.5 MB, free: 4.871 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.002755/0.2699, allocations: 1.822 MB / 424.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2699, allocations: 8.031 kB / 424.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.2702, allocations: 159 kB / 424.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.2717, allocations: 1.181 MB / 425.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.2719, allocations: 96.95 kB / 425.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.585e-05/0.2719, allocations: 55.88 kB / 425.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.2731, allocations: 0.6595 MB / 426.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2731, allocations: 0 / 426.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.782e-05/0.2732, allocations: 24 kB / 426.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.2732, allocations: 16 kB / 426.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007842/0.274, allocations: 435.7 kB / 427 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.2781, allocations: 2.864 MB / 429.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009625/0.2791, allocations: 422.4 kB / 430.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006406/0.2798, allocations: 324.6 kB / 430.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.2798, allocations: 4 kB / 430.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.2798, allocations: 38.56 kB / 430.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.304e-06/0.2798, allocations: 0 / 430.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001885/0.2817, allocations: 0.7676 MB / 431.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.2819, allocations: 269 kB / 431.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/0.2846, allocations: 2.243 MB / 433.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.2847, allocations: 29.7 kB / 433.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005641/0.2852, allocations: 0.6506 MB / 434.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.471e-05/0.2853, allocations: 98.56 kB / 434.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.2855, allocations: 77.97 kB / 434.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2856, allocations: 325.9 kB / 435.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.286, allocations: 164.7 kB / 435.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004303/0.2864, allocations: 303.7 kB / 435.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006674/0.2871, allocations: 389 kB / 435.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2871, allocations: 0 / 435.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001327/0.2884, allocations: 0.6443 MB / 436.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2885, allocations: 8 kB / 436.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2885, allocations: 3.938 kB / 436.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.2888, allocations: 72.94 kB / 436.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.2892, allocations: 87.88 kB / 436.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.2909, allocations: 1.778 MB / 438.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004939/0.2914, allocations: 51.52 kB / 438.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.2915, allocations: 16 kB / 438.6 MB, free: 4.203 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.0006441/0.2921, allocations: 481.6 kB / 439 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.2923, allocations: 138.3 kB / 439.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.2925, allocations: 169.6 kB / 439.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.2926, allocations: 4 kB / 439.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2926, allocations: 0 / 439.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2926, allocations: 3.984 kB / 439.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.2951, allocations: 1.657 MB / 441 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2951, allocations: 4 kB / 441 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.2955, allocations: 67.95 kB / 441.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.2957, allocations: 60.94 kB / 441.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.2957, allocations: 8 kB / 441.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.2973, allocations: 1.732 MB / 442.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2973, allocations: 3.938 kB / 442.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.2987, allocations: 0.7936 MB / 443.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004441/0.2992, allocations: 335.2 kB / 444 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.2993, allocations: 11.98 kB / 444 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004552/0.2998, allocations: 43.95 kB / 444 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.849e-05/0.2999, allocations: 31.91 kB / 444.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.2999, allocations: 12 kB / 444.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002021/0.3019, allocations: 1.612 MB / 445.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3019, allocations: 0 / 445.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007385/0.3027, allocations: 203.6 kB / 445.9 MB, free: 12.59 MB / 366.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.001081/0.3038, allocations: 465.6 kB / 446.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.3048, allocations: 0.4986 MB / 446.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3049, allocations: 0 / 446.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.3054, allocations: 314.8 kB / 447.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009365/0.3064, allocations: 216.9 kB / 447.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.3102, allocations: 2.685 MB / 450.1 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008833/0.3111, allocations: 1.253 MB / 451.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.3114, allocations: 71.44 kB / 451.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3114, allocations: 0 / 451.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of Templates: time 0.02852/0.3399, allocations: 21.08 MB / 472.5 MB, free: 2.117 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