Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.ChargeBattery.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.0007736/0.0007736, allocations: 101.5 kB / 18.95 MB, free: 1.184 MB / 13.93 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.0008063/0.0008063, allocations: 221.2 kB / 22.25 MB, free: 3.578 MB / 13.93 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 0.996/0.996, allocations: 230.6 MB / 256 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo): time 0.005957/0.005957, allocations: 1.765 MB / 314.2 MB, free: 176 kB / 234.7 MB " [Timeout remaining time 180] Using package BikeTrailer with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo) 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(BikeTrailer.Examples.ChargeBattery,fileNamePrefix="BikeTrailer_BikeTrailer_Examples_ChargeBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BikeTrailer.Examples.ChargeBattery,fileNamePrefix="BikeTrailer_BikeTrailer_Examples_ChargeBattery",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BikeTrailer requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 80.19 kB / 436.8 MB, free: 46.29 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09221/0.09355, allocations: 53.79 MB / 490.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.003029/0.09658, allocations: 2.524 MB / 493.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009188/0.0975, allocations: 0.6194 MB / 493.8 MB, free: 7.141 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.09762, allocations: 7.938 kB / 493.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.09776, allocations: 51.5 kB / 493.8 MB, free: 7.082 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.09787, allocations: 63.42 kB / 493.9 MB, free: 7.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.09804, allocations: 95.89 kB / 494 MB, free: 6.926 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002425/0.09828, allocations: 310.9 kB / 494.3 MB, free: 6.621 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.09845, allocations: 111.6 kB / 494.4 MB, free: 6.512 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.525e-05/0.09855, allocations: 131.5 kB / 494.5 MB, free: 6.383 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.09868, allocations: 111.4 kB / 494.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.09871, allocations: 32 kB / 494.7 MB, free: 6.242 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.333e-05/0.09875, allocations: 36 kB / 494.7 MB, free: 6.207 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.09879, allocations: 67.83 kB / 494.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.365e-05/0.09888, allocations: 131.4 kB / 494.9 MB, free: 6.012 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.09917, allocations: 370.5 kB / 495.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.09917, allocations: 0 / 495.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09917, allocations: 0 / 495.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.09918, allocations: 0 / 495.3 MB, free: 5.648 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0006433/0.09982, allocations: 0.4977 MB / 495.8 MB, free: 5.117 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.09986, allocations: 8.031 kB / 495.8 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.264e-05/0.09991, allocations: 70.66 kB / 495.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/0.09997, allocations: 36.7 kB / 495.9 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.1003, allocations: 206.1 kB / 496.1 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.569e-05/0.1004, allocations: 80.61 kB / 496.1 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.1004, allocations: 28.31 kB / 496.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003912/0.1008, allocations: 384.7 kB / 496.6 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1008, allocations: 0 / 496.6 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.1008, allocations: 12 kB / 496.6 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1008, allocations: 12 kB / 496.6 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.1011, allocations: 178.5 kB / 496.7 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.1022, allocations: 1.203 MB / 498 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1025, allocations: 154.5 kB / 498.1 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.501e-05/0.1025, allocations: 48.78 kB / 498.2 MB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.1025, allocations: 0 / 498.2 MB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.1026, allocations: 34.56 kB / 498.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.213e-06/0.1026, allocations: 3.938 kB / 498.2 MB, free: 2.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005572/0.1031, allocations: 258.4 kB / 498.4 MB, free: 2.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.1032, allocations: 63.39 kB / 498.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.1033, allocations: 202.2 kB / 498.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1033, allocations: 29.7 kB / 498.7 MB, free: 1.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.277e-05/0.1034, allocations: 188 kB / 498.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.1034, allocations: 39.67 kB / 499 MB, free: 1.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.1035, allocations: 37.7 kB / 499 MB, free: 1.645 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.1035, allocations: 330.8 kB / 499.3 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.068e-05/0.1036, allocations: 47.97 kB / 499.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.431e-05/0.1037, allocations: 116.5 kB / 499.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1039, allocations: 160.4 kB / 499.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1039, allocations: 0 / 499.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003562/0.1042, allocations: 274.2 kB / 499.9 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1042, allocations: 8.031 kB / 499.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1043, allocations: 4 kB / 499.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.1044, allocations: 48.81 kB / 500 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.642e-05/0.1045, allocations: 28 kB / 500 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.1056, allocations: 1.57 MB / 0.4898 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.372e-05/0.1056, allocations: 15.89 kB / 0.4898 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.1056, allocations: 8 kB / 0.4898 GB, free: 14.86 MB / 362.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.soc.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.1057, allocations: 145.8 kB / 0.49 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.1058, allocations: 19.84 kB / 0.49 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.1058, allocations: 17.41 kB / 0.49 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1058, allocations: 96 / 0.49 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.1058, allocations: 4.375 kB / 0.49 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1058, allocations: 3.984 kB / 0.49 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.106, allocations: 236.7 kB / 0.4902 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.106, allocations: 3.938 kB / 0.4902 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.106, allocations: 19.92 kB / 0.4903 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.1061, allocations: 44.77 kB / 0.4903 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.1061, allocations: 4 kB / 0.4903 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008377/0.107, allocations: 1.55 MB / 0.4918 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.107, allocations: 0 / 0.4918 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.1073, allocations: 344.1 kB / 0.4921 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.92e-05/0.1074, allocations: 19.86 kB / 0.4922 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.1074, allocations: 4 kB / 0.4922 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.234e-05/0.1074, allocations: 15.98 kB / 0.4922 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.1075, allocations: 7.984 kB / 0.4922 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.1075, allocations: 7.938 kB / 0.4922 GB, free: 12.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.812e-05/0.1076, allocations: 143.3 kB / 0.4923 GB, free: 12.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1076, allocations: 0 / 0.4923 GB, free: 12.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000275/0.1078, allocations: 59.84 kB / 0.4924 GB, free: 12.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (battery.soc.y,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 (7): * Single equations (assignments): 6 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005327/0.1084, allocations: 0.8731 MB / 0.4932 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.1087, allocations: 250.5 kB / 0.4935 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1087, allocations: 0 / 0.4935 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1089, allocations: 183.2 kB / 0.4937 GB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.1091, allocations: 32.56 kB / 0.4937 GB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.1112, allocations: 2.37 MB / 0.496 GB, free: 8.137 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.533e-05/0.1112, allocations: 137.8 kB / 0.4961 GB, free: 7.984 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.015e-05/0.1113, allocations: 17.48 kB / 0.4961 GB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.519e-05/0.1114, allocations: 75.41 kB / 0.4962 GB, free: 7.895 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1114, allocations: 0 / 0.4962 GB, free: 7.895 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08677/0.1981, allocations: 4.874 MB / 0.501 GB, free: 3.156 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.853/8.051, allocations: 15.38 kB / 0.501 GB, free: 3.145 MB / 362.7 MB " [Timeout remaining time 652] (rm -f BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.ChargeBattery.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_BikeTrailer_BikeTrailer_Examples_ChargeBattery_fmu --startTime=0 --stopTime=7200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 ../BikeTrailer_BikeTrailer_Examples_ChargeBattery.fmu) > BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe 2>&1) [Timeout 52.5] (rm -f BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ../BikeTrailer_BikeTrailer_Examples_ChargeBattery.fmu) > BikeTrailer_BikeTrailer.Examples.ChargeBattery_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.443804373964667]