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.000905/0.000905, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008729/0.0008729, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9006/0.9006, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 1.924e-06/1.924e-06, allocations: 0 / 318.4 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.634e-05, allocations: 6.219 kB / 318.4 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004629/0.004655, allocations: 3.653 MB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.007406, allocations: 1.799 MB / 323.9 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004834/0.00789, allocations: 11.94 kB / 323.9 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.009368, allocations: 0.5795 MB / 324.5 MB, free: 200 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008207/0.01019, allocations: 358.1 kB / 324.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008165/0.011, allocations: 298.4 kB / 325.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.01235, allocations: 1.005 MB / 326.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.01279, allocations: 213 kB / 326.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009066/0.0137, allocations: 0.538 MB / 326.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.0144, allocations: 439 kB / 327.3 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.01451, allocations: 80 kB / 327.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002798/0.01479, allocations: 143.8 kB / 327.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000285/0.01507, allocations: 478.7 kB / 328 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003487/0.01542, allocations: 390.9 kB / 328.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.01695, allocations: 1.725 MB / 330.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.01696, allocations: 4 kB / 330.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.01697, allocations: 0 / 330.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.836e-05/0.01704, allocations: 0 / 330.1 MB, free: 10.56 MB / 298.7 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.002693/0.01973, allocations: 1.761 MB / 331.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.01978, allocations: 16.84 kB / 331.9 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.019e-05/0.01987, allocations: 90.72 kB / 331.9 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000242/0.02012, allocations: 171.8 kB / 332.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.02139, allocations: 1.133 MB / 333.2 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.02154, allocations: 166.1 kB / 333.4 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-05/0.02161, allocations: 52.36 kB / 333.5 MB, free: 7.066 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009305/0.02254, allocations: 1.023 MB / 334.5 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.02255, allocations: 0 / 334.5 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.02258, allocations: 24 kB / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.0226, allocations: 12 kB / 334.5 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005458/0.02314, allocations: 435.7 kB / 334.9 MB, free: 5.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002771/0.02591, allocations: 2.599 MB / 337.5 MB, free: 2.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008489/0.02676, allocations: 398.4 kB / 337.9 MB, free: 2.348 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.02721, allocations: 296.7 kB / 338.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.02725, allocations: 4 kB / 338.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.02729, allocations: 42.56 kB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.284e-06/0.02729, allocations: 0 / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001259/0.02855, allocations: 0.6891 MB / 339 MB, free: 1.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.02868, allocations: 265 kB / 339.2 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.03083, allocations: 2.242 MB / 341.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.03086, allocations: 37.64 kB / 341.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/0.03124, allocations: 0.6357 MB / 342.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.957e-05/0.03131, allocations: 111 kB / 342.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.03142, allocations: 82.02 kB / 342.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.03152, allocations: 325.9 kB / 342.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002293/0.03175, allocations: 160.7 kB / 342.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004055/0.03215, allocations: 0.4943 MB / 343.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.03262, allocations: 397.3 kB / 343.7 MB, free: 12.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.03262, allocations: 7.875 kB / 343.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009078/0.03353, allocations: 0.6415 MB / 344.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.03356, allocations: 4 kB / 344.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.03357, allocations: 4 kB / 344.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.03381, allocations: 72.75 kB / 344.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.03403, allocations: 95.94 kB / 344.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.03533, allocations: 1.656 MB / 346.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.03559, allocations: 59.64 kB / 346.2 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.03561, allocations: 16.08 kB / 346.2 MB, free: 9.668 MB / 314.7 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.0005344/0.03615, allocations: 481.6 kB / 346.7 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.03626, allocations: 143.1 kB / 346.8 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.03638, allocations: 161.5 kB / 347 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.03639, allocations: 3.938 kB / 347 MB, free: 8.883 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.03639, allocations: 7.938 kB / 347 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.03639, allocations: 4.062 kB / 347 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.03801, allocations: 1.481 MB / 348.5 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.03801, allocations: 0 / 348.5 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.03819, allocations: 67.94 kB / 348.6 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001361/0.03832, allocations: 64.83 kB / 348.6 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.03834, allocations: 7.984 kB / 348.6 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.03956, allocations: 1.609 MB / 350.2 MB, free: 5.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.03956, allocations: 12.11 kB / 350.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.04041, allocations: 0.8029 MB / 351.1 MB, free: 4.617 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.04071, allocations: 258.9 kB / 351.3 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.536e-05/0.04078, allocations: 11.94 kB / 351.3 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.04101, allocations: 55.89 kB / 351.4 MB, free: 4.297 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.04108, allocations: 31.94 kB / 351.4 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.0411, allocations: 8 kB / 351.4 MB, free: 4.258 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001413/0.04251, allocations: 1.596 MB / 353 MB, free: 2.664 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.04251, allocations: 0 / 353 MB, free: 2.664 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005545/0.04306, allocations: 203.7 kB / 353.2 MB, free: 2.465 MB / 314.7 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.002082/0.04515, allocations: 1.751 MB / 355 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.04586, allocations: 482.5 kB / 355.4 MB, free: 420 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.04586, allocations: 4 kB / 355.4 MB, free: 416 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003236/0.04619, allocations: 311.1 kB / 355.7 MB, free: 92 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006438/0.04683, allocations: 209.3 kB / 355.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/0.06484, allocations: 13.96 MB / 369.9 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.06533, allocations: 0.664 MB / 370.6 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003679/0.06569, allocations: 211.8 kB / 370.8 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/0.06612, allocations: 480.3 kB / 371.2 MB, free: 308 kB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.06612, allocations: 0 / 371.2 MB, free: 308 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04855/0.1147, allocations: 29.74 MB / 401 MB, free: 2.746 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/8.563, allocations: 5.922 kB / 401 MB, free: 2.746 MB / 362.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.952683472074568]