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.0008036/0.0008036, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008198/0.0008198, allocations: 166.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9988/0.9988, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.0054/0.0054, allocations: 1.321 MB / 260.5 MB, free: 11.94 MB / 250.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: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 383.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.266e-05, allocations: 9.094 kB / 383.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002848/0.00287, allocations: 2.512 MB / 385.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009461/0.003816, allocations: 0.6194 MB / 386.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.00396, allocations: 7.938 kB / 386.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.004116, allocations: 43.58 kB / 386.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.004232, allocations: 67.3 kB / 386.5 MB, free: 11.37 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.004445, allocations: 99.88 kB / 386.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002942/0.004739, allocations: 326.7 kB / 386.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.00495, allocations: 123.5 kB / 387 MB, free: 10.83 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.005117, allocations: 191.6 kB / 387.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.005258, allocations: 91.69 kB / 387.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.005299, allocations: 32 kB / 387.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.938e-05/0.005339, allocations: 36 kB / 387.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.34e-05/0.005392, allocations: 71.75 kB / 387.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.142e-05/0.005474, allocations: 99.75 kB / 387.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.005801, allocations: 378.9 kB / 387.9 MB, free: 9.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.005805, allocations: 3.984 kB / 387.9 MB, free: 9.945 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.005807, allocations: 0 / 387.9 MB, free: 9.945 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.005814, allocations: 0 / 387.9 MB, free: 9.945 MB / 362.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.0007642/0.006578, allocations: 0.5042 MB / 388.4 MB, free: 9.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.00662, allocations: 8.031 kB / 388.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.717e-05/0.006688, allocations: 66.72 kB / 388.5 MB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.006749, allocations: 32.75 kB / 388.5 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.007116, allocations: 213.3 kB / 388.7 MB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.007217, allocations: 76.56 kB / 388.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.007257, allocations: 24.38 kB / 388.8 MB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.00769, allocations: 385.3 kB / 389.2 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.007702, allocations: 192 / 389.2 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.007727, allocations: 15.94 kB / 389.2 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.007736, allocations: 8 kB / 389.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.007981, allocations: 186.4 kB / 389.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.009297, allocations: 1.2 MB / 390.6 MB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/0.009663, allocations: 150.6 kB / 390.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.329e-05/0.009736, allocations: 44.83 kB / 390.8 MB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.009754, allocations: 4 kB / 390.8 MB, free: 6.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.009782, allocations: 34.56 kB / 390.8 MB, free: 6.801 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.984e-06/0.009784, allocations: 0 / 390.8 MB, free: 6.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006275/0.01041, allocations: 270.3 kB / 391.1 MB, free: 6.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.01045, allocations: 59.41 kB / 391.1 MB, free: 6.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.01061, allocations: 203.7 kB / 391.3 MB, free: 6.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.01063, allocations: 29.7 kB / 391.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.663e-05/0.01072, allocations: 188 kB / 391.5 MB, free: 6.027 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.01075, allocations: 39.69 kB / 391.6 MB, free: 5.988 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.01081, allocations: 41.66 kB / 391.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.01091, allocations: 326.8 kB / 391.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.681e-05/0.01099, allocations: 43.98 kB / 392 MB, free: 5.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.01109, allocations: 119.7 kB / 392.1 MB, free: 5.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.01128, allocations: 168.4 kB / 392.3 MB, free: 5.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.01128, allocations: 0 / 392.3 MB, free: 5.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003823/0.01166, allocations: 266.1 kB / 392.5 MB, free: 4.961 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.01168, allocations: 12.22 kB / 392.5 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.01169, allocations: 4 kB / 392.5 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001915/0.01188, allocations: 44.83 kB / 392.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.478e-05/0.01194, allocations: 27.98 kB / 392.6 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.01304, allocations: 1.558 MB / 394.2 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.997e-05/0.01311, allocations: 23.88 kB / 394.2 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.01313, allocations: 4 kB / 394.2 MB, free: 3.172 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.0001176/0.01325, allocations: 141.8 kB / 394.3 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.461e-05/0.01327, allocations: 15.91 kB / 394.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.01329, allocations: 21.45 kB / 394.4 MB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.0133, allocations: 8.25 kB / 394.4 MB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.0133, allocations: 4.094 kB / 394.4 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.0133, allocations: 0 / 394.4 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.01351, allocations: 252.5 kB / 394.6 MB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01352, allocations: 7.938 kB / 394.6 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.073e-05/0.01357, allocations: 8 kB / 394.6 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.01367, allocations: 44.81 kB / 394.7 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.01368, allocations: 8 kB / 394.7 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009151/0.0146, allocations: 1.546 MB / 396.2 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.0146, allocations: 0 / 396.2 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.01497, allocations: 340.2 kB / 396.6 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.01499, allocations: 15.94 kB / 396.6 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.015, allocations: 3.938 kB / 396.6 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.37e-05/0.01507, allocations: 11.98 kB / 396.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.01511, allocations: 15.92 kB / 396.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.01512, allocations: 8 kB / 396.6 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.051e-05/0.0152, allocations: 139.3 kB / 396.8 MB, free: 420 kB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0152, allocations: 4 kB / 396.8 MB, free: 416 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.00027/0.01547, allocations: 63.78 kB / 396.8 MB, free: 352 kB / 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.0005671/0.01604, allocations: 0.8655 MB / 397.7 MB, free: 15.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003626/0.0164, allocations: 246.5 kB / 397.9 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.0164, allocations: 0 / 397.9 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.01657, allocations: 183.2 kB / 398.1 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.01682, allocations: 39.84 kB / 398.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.01897, allocations: 2.335 MB / 400.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.923e-05/0.01907, allocations: 141.8 kB / 400.6 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.205e-05/0.01912, allocations: 13.48 kB / 400.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.0192, allocations: 76.47 kB / 400.7 MB, free: 12.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.0192, allocations: 4 kB / 400.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08575/0.1049, allocations: 5.009 MB / 405.7 MB, free: 7.363 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.261, allocations: 5.688 kB / 405.7 MB, free: 7.359 MB / 378.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.65290370117873]