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.001526/0.001526, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.00225/0.00225, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.45/1.45, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001462/0.001462, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005959/0.1095, allocations: 4.053 MB / 430.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2238/0.3333, allocations: 2.063 MB / 432.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003571/0.3336, allocations: 15 kB / 432.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.335, allocations: 0.5931 MB / 433 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006758/0.3357, allocations: 392.5 kB / 433.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.3363, allocations: 285.8 kB / 433.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.3374, allocations: 0.983 MB / 434.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.3378, allocations: 258 kB / 434.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004721/0.3382, allocations: 399.8 kB / 435.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000643/0.3389, allocations: 0.5071 MB / 435.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.339, allocations: 81.5 kB / 435.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003093/0.3393, allocations: 137.7 kB / 436 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004275/0.3398, allocations: 479.2 kB / 436.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005582/0.3403, allocations: 0.6304 MB / 437.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00235/0.3427, allocations: 1.772 MB / 438.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3427, allocations: 0 / 438.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.3427, allocations: 1.172 kB / 438.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.894e-05/0.3427, allocations: 7.938 kB / 438.9 MB, free: 6.047 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.003389/0.3461, allocations: 1.863 MB / 440.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3461, allocations: 9.75 kB / 440.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3463, allocations: 97.56 kB / 440.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.3465, allocations: 168.6 kB / 441 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002052/0.3486, allocations: 1.198 MB / 442.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3487, allocations: 97.06 kB / 442.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.4e-05/0.3488, allocations: 56 kB / 442.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.35, allocations: 0.6547 MB / 443.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.35, allocations: 5.188 kB / 443.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.35, allocations: 25.03 kB / 443.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.3501, allocations: 11.22 kB / 443.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008777/0.3509, allocations: 435.5 kB / 443.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004737/0.3557, allocations: 2.863 MB / 446.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.3567, allocations: 398.7 kB / 446.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006654/0.3574, allocations: 292 kB / 447.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.3574, allocations: 6.906 kB / 447.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.3574, allocations: 38.23 kB / 447.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.235e-06/0.3574, allocations: 5.375 kB / 447.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002086/0.3595, allocations: 0.7795 MB / 447.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3596, allocations: 262.9 kB / 448.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/0.3631, allocations: 2.246 MB / 450.4 MB, free: 224 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.3631, allocations: 32.45 kB / 450.4 MB, free: 188 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/0.3643, allocations: 0.704 MB / 451.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.3644, allocations: 113.7 kB / 451.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.3646, allocations: 83.39 kB / 451.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3648, allocations: 326.4 kB / 451.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.3651, allocations: 161.4 kB / 451.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005207/0.3656, allocations: 295.3 kB / 452.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008046/0.3664, allocations: 398.9 kB / 452.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3665, allocations: 0.7031 kB / 452.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001598/0.3681, allocations: 0.6439 MB / 453.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.3681, allocations: 17.14 kB / 453.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.3681, allocations: 3.812 kB / 453.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.3684, allocations: 59.86 kB / 453.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/0.3688, allocations: 94.66 kB / 453.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.3709, allocations: 1.763 MB / 455 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/0.3715, allocations: 59.2 kB / 455.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.3715, allocations: 15.11 kB / 455.1 MB, free: 12.98 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.0008079/0.3723, allocations: 485.1 kB / 455.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.3725, allocations: 147.5 kB / 455.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002823/0.3728, allocations: 164.7 kB / 455.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3728, allocations: 3.562 kB / 455.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3728, allocations: 0 / 455.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.3728, allocations: 1.312 kB / 455.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.3759, allocations: 1.66 MB / 457.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3759, allocations: 0.9688 kB / 457.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.3762, allocations: 68.27 kB / 457.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.3764, allocations: 55.45 kB / 457.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.3764, allocations: 14.98 kB / 457.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.3782, allocations: 1.729 MB / 459.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3782, allocations: 1.031 kB / 459.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.3798, allocations: 0.8006 MB / 460.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005752/0.3804, allocations: 343.5 kB / 460.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.3805, allocations: 11.28 kB / 460.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004847/0.381, allocations: 44.02 kB / 460.6 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.719e-05/0.3811, allocations: 37.28 kB / 460.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.3811, allocations: 7.219 kB / 460.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.3836, allocations: 1.608 MB / 462.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3836, allocations: 0 / 462.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008516/0.3845, allocations: 212.1 kB / 462.5 MB, free: 8.211 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.00363/0.3881, allocations: 1.714 MB / 464.2 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.3893, allocations: 492.5 kB / 464.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3893, allocations: 0.6562 kB / 464.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005921/0.3899, allocations: 309.9 kB / 465 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.3911, allocations: 219.1 kB / 465.2 MB, free: 6.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.4129, allocations: 13.9 MB / 479.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.414, allocations: 1.264 MB / 480.3 MB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007594/0.4147, allocations: 215.8 kB / 480.6 MB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006785/0.4154, allocations: 479.3 kB / 481 MB, free: 8.816 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4154, allocations: 0 / 481 MB, free: 8.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06769/0.4831, allocations: 28.13 MB / 0.4972 GB, free: 12.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.74, allocations: 10.28 kB / 0.4972 GB, free: 12.89 MB / 414.1 MB " [Timeout remaining time 645] (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.14810965792276]