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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001988/0.001988, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002397/0.002397, allocations: 213.7 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003246/0.003246, allocations: 64.14 kB / 377.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2964, allocations: 53.41 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006388/0.3028, allocations: 4.075 MB / 435.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003838/0.3066, allocations: 2.092 MB / 437.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003566/0.307, allocations: 11.94 kB / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.3085, allocations: 0.5909 MB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008018/0.3093, allocations: 398.1 kB / 438.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006826/0.31, allocations: 286.9 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.3113, allocations: 0.9896 MB / 439.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003993/0.3117, allocations: 229 kB / 439.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.3122, allocations: 398.7 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.3128, allocations: 0.51 MB / 440.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.313, allocations: 76 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.3134, allocations: 140 kB / 440.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004541/0.3138, allocations: 478.6 kB / 441.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000599/0.3144, allocations: 0.629 MB / 442 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.3163, allocations: 1.77 MB / 443.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3163, allocations: 0 / 443.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3163, allocations: 4 kB / 443.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.12e-05/0.3163, allocations: 0 / 443.8 MB, free: 10.04 MB / 350.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.003396/0.3197, allocations: 1.792 MB / 445.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.3198, allocations: 12.03 kB / 445.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.3199, allocations: 90.7 kB / 445.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/0.3201, allocations: 167.9 kB / 445.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.3221, allocations: 1.134 MB / 447 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.3223, allocations: 186 kB / 447.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.3224, allocations: 52.33 kB / 447.2 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.3235, allocations: 0.6712 MB / 447.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3235, allocations: 0 / 447.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.3236, allocations: 24 kB / 447.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3236, allocations: 12 kB / 447.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008844/0.3245, allocations: 435.7 kB / 448.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004701/0.3292, allocations: 2.824 MB / 451.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/0.3301, allocations: 397.2 kB / 451.6 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006345/0.3308, allocations: 295.7 kB / 451.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.3308, allocations: 4 kB / 451.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.3308, allocations: 38.56 kB / 451.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.284e-06/0.3308, allocations: 7.938 kB / 451.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001949/0.3328, allocations: 0.7015 MB / 452.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.3329, allocations: 265 kB / 452.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.336, allocations: 2.246 MB / 455.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.248e-05/0.3361, allocations: 33.7 kB / 455.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006005/0.3367, allocations: 0.6435 MB / 455.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.929e-05/0.3368, allocations: 115 kB / 455.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3369, allocations: 86.02 kB / 456 MB, free: 13.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3371, allocations: 318 kB / 456.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.3374, allocations: 156.7 kB / 456.5 MB, free: 13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/0.3379, allocations: 304.6 kB / 456.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/0.3387, allocations: 400.6 kB / 457.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3387, allocations: 0 / 457.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001397/0.3401, allocations: 0.6492 MB / 457.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3401, allocations: 4 kB / 457.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3401, allocations: 4 kB / 457.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.3404, allocations: 64.75 kB / 457.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003763/0.3408, allocations: 95.81 kB / 458 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.3428, allocations: 1.668 MB / 459.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.3433, allocations: 59.73 kB / 459.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.3434, allocations: 16 kB / 459.7 MB, free: 9.543 MB / 366.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.0007232/0.3441, allocations: 489.6 kB / 460.2 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.3443, allocations: 143.1 kB / 460.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003358/0.3446, allocations: 165.6 kB / 460.5 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3446, allocations: 3.938 kB / 460.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3446, allocations: 0 / 460.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3446, allocations: 11.97 kB / 460.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/0.3477, allocations: 1.629 MB / 462.1 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.3477, allocations: 4 kB / 462.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.348, allocations: 63.95 kB / 462.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.3482, allocations: 56.83 kB / 462.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.3483, allocations: 7.984 kB / 462.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.3501, allocations: 1.625 MB / 463.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3501, allocations: 0 / 463.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.3516, allocations: 0.8022 MB / 464.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007237/0.3523, allocations: 262.9 kB / 464.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.3525, allocations: 8 kB / 464.9 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/0.3529, allocations: 51.95 kB / 465 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.074e-05/0.353, allocations: 35.88 kB / 465 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.3531, allocations: 8 kB / 465 MB, free: 3.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002409/0.3555, allocations: 1.608 MB / 466.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3555, allocations: 0 / 466.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000898/0.3564, allocations: 207.7 kB / 466.9 MB, free: 2.164 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.003593/0.36, allocations: 1.716 MB / 468.6 MB, free: 0.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.3612, allocations: 494.6 kB / 469 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3612, allocations: 3.906 kB / 469.1 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005703/0.3617, allocations: 302.8 kB / 469.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3628, allocations: 211.5 kB / 469.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/0.3853, allocations: 13.91 MB / 483.5 MB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.3866, allocations: 1.26 MB / 484.7 MB, free: 136 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005677/0.3872, allocations: 211.8 kB / 484.9 MB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007792/0.3879, allocations: 483.3 kB / 485.4 MB, free: 15.45 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3879, allocations: 4 kB / 485.4 MB, free: 15.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0797/0.4676, allocations: 28.42 MB / 0.5018 GB, free: 3.148 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/15.63, allocations: 0 / 0.5018 GB, free: 3.148 MB / 414.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.085607873974368]