Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 47.92 kB / 365.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 52.15 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005581/0.1073, allocations: 4.001 MB / 421.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.1104, allocations: 1.917 MB / 423.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000296/0.1107, allocations: 19.94 kB / 423.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.112, allocations: 0.5876 MB / 424.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006801/0.1127, allocations: 354.2 kB / 424.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006558/0.1133, allocations: 282.5 kB / 424.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001081/0.1144, allocations: 0.978 MB / 425.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004048/0.1148, allocations: 252.6 kB / 426.1 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.1152, allocations: 394.7 kB / 426.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005698/0.1158, allocations: 0.5061 MB / 427 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1159, allocations: 76 kB / 427.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002521/0.1161, allocations: 136 kB / 427.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.1165, allocations: 482.6 kB / 427.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005519/0.1171, allocations: 0.6212 MB / 428.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.1188, allocations: 1.766 MB / 430.1 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1188, allocations: 4 kB / 430.1 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1188, allocations: 0 / 430.1 MB, free: 272 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.357e-05/0.1189, allocations: 0 / 430.1 MB, free: 272 kB / 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.003165/0.122, allocations: 1.852 MB / 432 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1221, allocations: 12.03 kB / 432 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.1222, allocations: 94.7 kB / 432.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.1224, allocations: 163.9 kB / 432.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.1245, allocations: 1.198 MB / 433.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.1246, allocations: 96.72 kB / 433.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.859e-05/0.1247, allocations: 48 kB / 433.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.1258, allocations: 0.6634 MB / 434.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.1258, allocations: 0 / 434.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.407e-05/0.1258, allocations: 24 kB / 434.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.1259, allocations: 16 kB / 434.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00079/0.1267, allocations: 435.7 kB / 434.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004552/0.1312, allocations: 2.868 MB / 437.6 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000963/0.1322, allocations: 395.2 kB / 437.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006274/0.1328, allocations: 301.2 kB / 438.2 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.1328, allocations: 11.92 kB / 438.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.1329, allocations: 42.56 kB / 438.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.545e-06/0.1329, allocations: 0 / 438.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0019/0.1348, allocations: 0.7718 MB / 439.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/0.1349, allocations: 265 kB / 439.3 MB, free: 6.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003027/0.138, allocations: 2.234 MB / 441.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.189e-05/0.138, allocations: 29.7 kB / 441.6 MB, free: 4.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005913/0.1386, allocations: 0.6396 MB / 442.2 MB, free: 3.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1387, allocations: 111 kB / 442.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1389, allocations: 81.97 kB / 442.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.139, allocations: 325.9 kB / 442.7 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.1393, allocations: 168.6 kB / 442.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.1398, allocations: 296.6 kB / 443.2 MB, free: 2.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007059/0.1405, allocations: 404.4 kB / 443.6 MB, free: 2.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1405, allocations: 0 / 443.6 MB, free: 2.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001444/0.142, allocations: 0.6453 MB / 444.2 MB, free: 1.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.142, allocations: 10.12 kB / 444.2 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.142, allocations: 4 kB / 444.2 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.1423, allocations: 68.94 kB / 444.3 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.1426, allocations: 91.83 kB / 444.4 MB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1936/0.3363, allocations: 1.759 MB / 446.2 MB, free: 28.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006933/0.337, allocations: 58.64 kB / 446.2 MB, free: 28.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.337, allocations: 15.12 kB / 446.2 MB, free: 28.44 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.0006234/0.3376, allocations: 488 kB / 446.7 MB, free: 28.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001832/0.3378, allocations: 141.9 kB / 446.8 MB, free: 28.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.338, allocations: 161.8 kB / 447 MB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.338, allocations: 7.25 kB / 447 MB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.338, allocations: 0 / 447 MB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.338, allocations: 1.875 kB / 447 MB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.3405, allocations: 1.654 MB / 448.7 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3405, allocations: 0 / 448.7 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.3408, allocations: 70.14 kB / 448.7 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.341, allocations: 58.33 kB / 448.8 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.341, allocations: 10.11 kB / 448.8 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.3421, allocations: 1.72 MB / 450.5 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3421, allocations: 7.953 kB / 450.5 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.3434, allocations: 0.7978 MB / 451.3 MB, free: 26.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006459/0.3441, allocations: 344.4 kB / 451.7 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3442, allocations: 12.09 kB / 451.7 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.3446, allocations: 50.44 kB / 451.7 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.414e-05/0.3447, allocations: 26.83 kB / 451.7 MB, free: 26.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.3447, allocations: 13.95 kB / 451.8 MB, free: 26.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002201/0.3469, allocations: 1.599 MB / 453.4 MB, free: 25.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3469, allocations: 0 / 453.4 MB, free: 25.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008581/0.3478, allocations: 205.4 kB / 453.6 MB, free: 25.98 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.003256/0.351, allocations: 1.725 MB / 455.3 MB, free: 25.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.3521, allocations: 488.6 kB / 455.8 MB, free: 25.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3521, allocations: 1.219 kB / 455.8 MB, free: 25.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.3526, allocations: 301.3 kB / 456.1 MB, free: 24.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009809/0.3535, allocations: 219.7 kB / 456.3 MB, free: 24.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/0.3733, allocations: 13.87 MB / 470.1 MB, free: 19.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007672/0.3741, allocations: 1.256 MB / 471.4 MB, free: 19.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005432/0.3746, allocations: 214.9 kB / 471.6 MB, free: 19.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/0.3751, allocations: 477 kB / 472.1 MB, free: 18.65 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3751, allocations: 0.7188 kB / 472.1 MB, free: 18.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06019/0.4353, allocations: 28.04 MB / 0.4884 GB, free: 9.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.24, allocations: 3.984 kB / 0.4884 GB, free: 9.824 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.851973451208323]