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.001206/0.001206, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2937, allocations: 50.54 MB / 409.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005089/0.2989, allocations: 4.028 MB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.3019, allocations: 2.064 MB / 415.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000258/0.3022, allocations: 11.94 kB / 415.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.3034, allocations: 0.5915 MB / 415.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006449/0.304, allocations: 382 kB / 416.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006239/0.3047, allocations: 291 kB / 416.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009605/0.3057, allocations: 0.982 MB / 417.6 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004498/0.3061, allocations: 360.4 kB / 417.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.3065, allocations: 386.7 kB / 418.3 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005195/0.307, allocations: 498.2 kB / 418.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.715e-05/0.3071, allocations: 80 kB / 418.9 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.3074, allocations: 136 kB / 419 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.3077, allocations: 478.7 kB / 419.5 MB, free: 7.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005783/0.3083, allocations: 0.6367 MB / 420.1 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.3099, allocations: 1.757 MB / 421.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3099, allocations: 0 / 421.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3099, allocations: 3.938 kB / 421.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.3099, allocations: 4 kB / 421.9 MB, free: 4.797 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.002769/0.3127, allocations: 1.822 MB / 423.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.3127, allocations: 8.031 kB / 423.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.3129, allocations: 159 kB / 423.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/0.3146, allocations: 1.185 MB / 425 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.3148, allocations: 92.97 kB / 425.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.497e-05/0.3148, allocations: 51.94 kB / 425.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3159, allocations: 0.6595 MB / 425.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3159, allocations: 0 / 425.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.316, allocations: 24 kB / 425.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.316, allocations: 12 kB / 425.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007371/0.3168, allocations: 439.7 kB / 426.3 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004201/0.321, allocations: 2.864 MB / 429.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009264/0.3219, allocations: 430.4 kB / 429.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.3225, allocations: 316.7 kB / 429.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.3226, allocations: 4 kB / 429.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.3226, allocations: 38.56 kB / 429.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.3226, allocations: 0 / 429.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001813/0.3244, allocations: 0.7637 MB / 430.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.3246, allocations: 277 kB / 431 MB, free: 11.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.3272, allocations: 2.239 MB / 433.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.3273, allocations: 29.7 kB / 433.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004676/0.3277, allocations: 0.6467 MB / 433.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.801e-05/0.3278, allocations: 102.5 kB / 434 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.328, allocations: 77.97 kB / 434.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.233e-05/0.3281, allocations: 325.9 kB / 434.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003166/0.3284, allocations: 172.6 kB / 434.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003911/0.3288, allocations: 292.8 kB / 434.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006266/0.3294, allocations: 389 kB / 435.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3294, allocations: 0 / 435.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001224/0.3307, allocations: 0.6443 MB / 435.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3307, allocations: 8 kB / 435.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3307, allocations: 7.938 kB / 435.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/0.331, allocations: 68.94 kB / 435.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.3314, allocations: 95.81 kB / 436 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/0.333, allocations: 1.767 MB / 437.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005062/0.3335, allocations: 55.5 kB / 437.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.3336, allocations: 16 kB / 437.9 MB, free: 4.133 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.0008813/0.3345, allocations: 489.5 kB / 438.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002909/0.3348, allocations: 134.3 kB / 438.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003007/0.3351, allocations: 165.5 kB / 438.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3351, allocations: 8.062 kB / 438.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3351, allocations: 0 / 438.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3351, allocations: 0 / 438.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00399/0.3391, allocations: 1.661 MB / 440.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3391, allocations: 0 / 440.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/0.3397, allocations: 72.08 kB / 440.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002841/0.34, allocations: 60.83 kB / 440.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.34, allocations: 7.984 kB / 440.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.3422, allocations: 1.72 MB / 442.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.3422, allocations: 7.875 kB / 442.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.3444, allocations: 0.7897 MB / 443 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/0.3453, allocations: 343.2 kB / 443.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.3455, allocations: 8 kB / 443.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007282/0.3462, allocations: 44.05 kB / 443.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.3464, allocations: 35.94 kB / 443.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.3464, allocations: 8 kB / 443.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003262/0.3497, allocations: 1.616 MB / 445 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3497, allocations: 0 / 445 MB, free: 12.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3509, allocations: 203.6 kB / 445.2 MB, free: 12.51 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.001619/0.3525, allocations: 479.3 kB / 445.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.3541, allocations: 0.4947 MB / 446.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3541, allocations: 0 / 446.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008054/0.355, allocations: 310.4 kB / 446.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.3565, allocations: 216.3 kB / 446.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005524/0.362, allocations: 2.624 MB / 449.3 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.3633, allocations: 1.261 MB / 450.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007721/0.3641, allocations: 219.8 kB / 450.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/0.3644, allocations: 67.42 kB / 450.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3644, allocations: 0 / 450.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of Templates: time 0.03737/0.4018, allocations: 14.52 MB / 465.4 MB, free: 8.516 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches