Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.316, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006153/0.3221, allocations: 4.071 MB / 435.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.3259, allocations: 2.096 MB / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003617/0.3263, allocations: 11.94 kB / 437.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.3277, allocations: 0.5948 MB / 437.9 MB, free: 52 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008486/0.3285, allocations: 394 kB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008509/0.3294, allocations: 294.8 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.3308, allocations: 0.9858 MB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005052/0.3313, allocations: 233 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.3319, allocations: 394.7 kB / 440.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007102/0.3326, allocations: 0.5099 MB / 440.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.3327, allocations: 83.94 kB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.333, allocations: 136 kB / 440.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000431/0.3334, allocations: 482.6 kB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006428/0.3341, allocations: 0.629 MB / 442 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002253/0.3363, allocations: 1.774 MB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3363, allocations: 0 / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3363, allocations: 0 / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.3364, allocations: 0 / 443.8 MB, free: 10.16 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.003407/0.3398, allocations: 1.796 MB / 445.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.3398, allocations: 12.03 kB / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.3399, allocations: 94.7 kB / 445.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.3402, allocations: 167.9 kB / 445.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.3422, allocations: 1.126 MB / 447 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.3424, allocations: 181.8 kB / 447.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.566e-05/0.3425, allocations: 51.95 kB / 447.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.3437, allocations: 0.6634 MB / 447.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3438, allocations: 0 / 447.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.3438, allocations: 24 kB / 447.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.3438, allocations: 12 kB / 447.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008474/0.3447, allocations: 439.7 kB / 448.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004932/0.3496, allocations: 2.824 MB / 451.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.3506, allocations: 395.3 kB / 451.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006542/0.3513, allocations: 288.7 kB / 451.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.3513, allocations: 7.984 kB / 451.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.3513, allocations: 38.56 kB / 451.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.3513, allocations: 0 / 451.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001878/0.3532, allocations: 0.693 MB / 452.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001862/0.3534, allocations: 269 kB / 452.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003087/0.3565, allocations: 2.242 MB / 455.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.294e-05/0.3566, allocations: 37.7 kB / 455.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006003/0.3572, allocations: 0.6474 MB / 455.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3573, allocations: 107.1 kB / 455.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.3574, allocations: 82.02 kB / 455.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3575, allocations: 321.9 kB / 456.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.3579, allocations: 164.6 kB / 456.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/0.3584, allocations: 304.5 kB / 456.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007208/0.3592, allocations: 397.3 kB / 457.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3592, allocations: 0 / 457.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001445/0.3606, allocations: 0.6453 MB / 457.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3606, allocations: 14.69 kB / 457.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3606, allocations: 4 kB / 457.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.3609, allocations: 64.94 kB / 457.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.3613, allocations: 103.8 kB / 457.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.3632, allocations: 1.663 MB / 459.6 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.3637, allocations: 55.81 kB / 459.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.3637, allocations: 19.98 kB / 459.6 MB, free: 9.68 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.0006627/0.3644, allocations: 485.5 kB / 460.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.3646, allocations: 143.1 kB / 460.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002184/0.3648, allocations: 169.5 kB / 460.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3648, allocations: 0 / 460.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3648, allocations: 4 kB / 460.4 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3648, allocations: 3.984 kB / 460.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.3676, allocations: 1.625 MB / 462.1 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3676, allocations: 8 kB / 462.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.368, allocations: 71.89 kB / 462.1 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.3681, allocations: 60.88 kB / 462.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.3682, allocations: 8 kB / 462.2 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.3698, allocations: 1.613 MB / 463.8 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3698, allocations: 7.922 kB / 463.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.3714, allocations: 0.8099 MB / 464.6 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006184/0.372, allocations: 259 kB / 464.9 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.3721, allocations: 11.98 kB / 464.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.3725, allocations: 51.95 kB / 465 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.541e-05/0.3726, allocations: 27.95 kB / 465 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.3727, allocations: 12 kB / 465 MB, free: 4.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.3749, allocations: 1.608 MB / 466.6 MB, free: 2.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3749, allocations: 0 / 466.6 MB, free: 2.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007106/0.3756, allocations: 207.7 kB / 466.8 MB, free: 2.297 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.003464/0.379, allocations: 1.726 MB / 468.5 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3801, allocations: 494.6 kB / 469 MB, free: 232 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.3801, allocations: 3.906 kB / 469 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005569/0.3807, allocations: 303.1 kB / 469.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3817, allocations: 209.1 kB / 469.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/0.4027, allocations: 13.91 MB / 483.4 MB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.4038, allocations: 1.26 MB / 484.7 MB, free: 280 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005911/0.4044, allocations: 219.8 kB / 484.9 MB, free: 56 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006935/0.4051, allocations: 479.4 kB / 485.4 MB, free: 15.58 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4051, allocations: 0 / 485.4 MB, free: 15.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07591/0.481, allocations: 28.41 MB / 0.5017 GB, free: 3.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.35, allocations: 11.38 kB / 0.5017 GB, free: 3.352 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 18.805454527959228]