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.001285/0.001285, allocations: 107.9 kB / 18.48 MB, free: 4.543 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.001351/0.001351, allocations: 198.5 kB / 21.43 MB, free: 1.609 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.366/1.366, allocations: 225.6 MB / 249.8 MB, free: 3.609 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 51.92 kB / 366.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.1001, allocations: 52.13 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005894/0.106, allocations: 3.999 MB / 422.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.1094, allocations: 1.92 MB / 424.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003354/0.1097, allocations: 19.88 kB / 424.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.111, allocations: 0.5954 MB / 425 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006253/0.1117, allocations: 338.3 kB / 425.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.1123, allocations: 298.7 kB / 425.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.1134, allocations: 0.9741 MB / 426.6 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004017/0.1138, allocations: 252.6 kB / 426.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004337/0.1143, allocations: 394.7 kB / 427.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005818/0.1149, allocations: 0.51 MB / 427.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.115, allocations: 80 kB / 427.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.1152, allocations: 132 kB / 428 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003816/0.1156, allocations: 486.6 kB / 428.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005904/0.1162, allocations: 0.6251 MB / 429.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.1179, allocations: 1.762 MB / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1179, allocations: 0 / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.118, allocations: 0 / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.745e-05/0.118, allocations: 0 / 430.8 MB, free: 220 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.002888/0.1209, allocations: 1.852 MB / 432.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1209, allocations: 15.97 kB / 432.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.036e-05/0.1209, allocations: 13.19 kB / 432.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.121, allocations: 98.7 kB / 432.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.1213, allocations: 163.9 kB / 433 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.1229, allocations: 1.19 MB / 434.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.123, allocations: 108.5 kB / 434.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-05/0.1231, allocations: 48 kB / 434.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.1242, allocations: 0.6557 MB / 435 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1242, allocations: 0 / 435 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.441e-05/0.1243, allocations: 27.92 kB / 435 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.1243, allocations: 12 kB / 435 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008142/0.1251, allocations: 439.7 kB / 435.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/0.1294, allocations: 2.868 MB / 438.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009633/0.1303, allocations: 403.2 kB / 438.7 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006228/0.131, allocations: 301.1 kB / 439 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.131, allocations: 4 kB / 439 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.131, allocations: 42.56 kB / 439 MB, free: 7.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.503e-06/0.131, allocations: 0 / 439 MB, free: 7.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001887/0.1329, allocations: 0.7678 MB / 439.8 MB, free: 6.914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.1331, allocations: 261 kB / 440 MB, free: 6.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002778/0.1358, allocations: 2.234 MB / 442.3 MB, free: 4.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.1359, allocations: 37.64 kB / 442.3 MB, free: 4.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005805/0.1365, allocations: 0.6473 MB / 443 MB, free: 3.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.1366, allocations: 107.1 kB / 443.1 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1367, allocations: 78.02 kB / 443.1 MB, free: 3.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1368, allocations: 325.9 kB / 443.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.1372, allocations: 160.6 kB / 443.6 MB, free: 2.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.1376, allocations: 304.6 kB / 443.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006998/0.1383, allocations: 396.5 kB / 444.3 MB, free: 2.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1383, allocations: 4 kB / 444.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001329/0.1397, allocations: 0.6453 MB / 445 MB, free: 1.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1397, allocations: 7.938 kB / 445 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1397, allocations: 4 kB / 445 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.14, allocations: 64.94 kB / 445 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.1403, allocations: 95.81 kB / 445.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1766/0.3169, allocations: 1.759 MB / 446.9 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007123/0.3177, allocations: 63.86 kB / 446.9 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.3177, allocations: 15.34 kB / 447 MB, free: 27.83 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.0006248/0.3183, allocations: 486.5 kB / 447.4 MB, free: 27.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.3185, allocations: 140.5 kB / 447.6 MB, free: 27.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.3186, allocations: 165.8 kB / 447.7 MB, free: 27.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3186, allocations: 3.906 kB / 447.7 MB, free: 27.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.3186, allocations: 0 / 447.7 MB, free: 27.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3187, allocations: 1.828 kB / 447.7 MB, free: 27.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.3209, allocations: 1.655 MB / 449.4 MB, free: 27.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3209, allocations: 0 / 449.4 MB, free: 27.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000308/0.3212, allocations: 73.38 kB / 449.5 MB, free: 27.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001711/0.3214, allocations: 59.98 kB / 449.5 MB, free: 27.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.3214, allocations: 5.5 kB / 449.5 MB, free: 27.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.3225, allocations: 1.729 MB / 451.3 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3225, allocations: 2.344 kB / 451.3 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3237, allocations: 0.7988 MB / 452.1 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/0.3241, allocations: 338 kB / 452.4 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3242, allocations: 12.05 kB / 452.4 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.3246, allocations: 45.3 kB / 452.4 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.3247, allocations: 27.19 kB / 452.5 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3248, allocations: 14.81 kB / 452.5 MB, free: 25.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00187/0.3266, allocations: 1.6 MB / 454.1 MB, free: 25.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3266, allocations: 3.562 kB / 454.1 MB, free: 25.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007077/0.3273, allocations: 207.5 kB / 454.3 MB, free: 25.37 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.003242/0.3306, allocations: 1.723 MB / 456 MB, free: 24.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.3316, allocations: 491.3 kB / 456.5 MB, free: 24.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3316, allocations: 1.625 kB / 456.5 MB, free: 24.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004757/0.3321, allocations: 304.1 kB / 456.8 MB, free: 24.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009189/0.333, allocations: 212.3 kB / 457 MB, free: 24.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01843/0.3514, allocations: 13.88 MB / 470.9 MB, free: 19.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007981/0.3522, allocations: 1.259 MB / 472.1 MB, free: 18.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005743/0.3528, allocations: 213.8 kB / 472.3 MB, free: 18.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/0.3533, allocations: 477.9 kB / 472.8 MB, free: 18.29 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3533, allocations: 0 / 472.8 MB, free: 18.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05312/0.4064, allocations: 28.09 MB / 0.4892 GB, free: 9.488 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.08, allocations: 12.05 kB / 0.4892 GB, free: 9.477 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 18.25731309101684]