Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001019/0.001019, allocations: 100.3 kB / 19.72 MB, free: 428 kB / 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.001066/0.001066, allocations: 215.3 kB / 23.02 MB, free: 2.973 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 1.023/1.023, allocations: 230.6 MB / 256.8 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.987/1.987, allocations: 0.5045 GB / 0.8104 GB, free: 2.75 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/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(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.0009984/0.0009984, allocations: 71.83 kB / 1.177 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.827/0.828, allocations: 180 MB / 1.352 GB, free: 1.676 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002013/0.83, allocations: 0.6667 MB / 1.353 GB, free: 1.012 MB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.001178/0.8312, allocations: 1.069 MB / 1.354 GB, free: 15.93 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.851e-05/0.8313, allocations: 0 / 1.354 GB, free: 15.93 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 3.754e-05/0.8313, allocations: 7.922 kB / 1.354 GB, free: 15.92 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 7.366e-05/0.8314, allocations: 3.938 kB / 1.354 GB, free: 15.92 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.8317, allocations: 51.83 kB / 1.354 GB, free: 15.87 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.8319, allocations: 55.8 kB / 1.354 GB, free: 15.81 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.832, allocations: 7.984 kB / 1.354 GB, free: 15.8 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.841e-05/0.832, allocations: 23.97 kB / 1.354 GB, free: 15.78 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.024e-05/0.8321, allocations: 15.86 kB / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.8321, allocations: 4 kB / 1.354 GB, free: 15.76 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.531e-05/0.8322, allocations: 19.98 kB / 1.354 GB, free: 15.74 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 2.208e-05/0.8322, allocations: 8 kB / 1.354 GB, free: 15.73 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 3.699e-05/0.8322, allocations: 23.91 kB / 1.354 GB, free: 15.71 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.8324, allocations: 57.98 kB / 1.354 GB, free: 15.66 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.8324, allocations: 3.938 kB / 1.354 GB, free: 15.65 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.304e-06/0.8324, allocations: 0 / 1.354 GB, free: 15.65 MB / 1.042 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.8324, allocations: 4 kB / 1.354 GB, free: 15.65 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004889/0.8329, allocations: 290.2 kB / 1.355 GB, free: 15.33 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.833, allocations: 12.91 kB / 1.355 GB, free: 15.32 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.739e-05/0.833, allocations: 38.75 kB / 1.355 GB, free: 15.27 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.8331, allocations: 4.891 kB / 1.355 GB, free: 15.27 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.972e-05/0.8332, allocations: 110.5 kB / 1.355 GB, free: 15.14 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.8332, allocations: 4.375 kB / 1.355 GB, free: 15.13 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.8332, allocations: 384 / 1.355 GB, free: 15.13 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.8333, allocations: 70.22 kB / 1.355 GB, free: 15.06 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.8333, allocations: 7.875 kB / 1.355 GB, free: 15.05 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.8333, allocations: 0 / 1.355 GB, free: 15.05 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.8334, allocations: 0 / 1.355 GB, free: 15.05 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.711e-05/0.8334, allocations: 43.95 kB / 1.355 GB, free: 15.01 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.8338, allocations: 235.9 kB / 1.355 GB, free: 14.73 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.8339, allocations: 62.55 kB / 1.355 GB, free: 14.66 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.507e-05/0.834, allocations: 36.89 kB / 1.355 GB, free: 14.62 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.834, allocations: 0 / 1.355 GB, free: 14.62 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.8342, allocations: 75.34 kB / 1.355 GB, free: 14.54 MB / 1.042 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.8342, allocations: 0 / 1.355 GB, free: 14.54 MB / 1.042 GB Notification: Performance of matching and sorting (n=6): time 0.0002795/0.8345, allocations: 113.6 kB / 1.355 GB, free: 14.42 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.8345, allocations: 51.41 kB / 1.356 GB, free: 14.36 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.393e-05/0.8346, allocations: 109.8 kB / 1.356 GB, free: 14.24 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.8346, allocations: 33.64 kB / 1.356 GB, free: 14.2 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 4.621e-05/0.8347, allocations: 88.12 kB / 1.356 GB, free: 14.11 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.8347, allocations: 19.91 kB / 1.356 GB, free: 14.09 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.8347, allocations: 21.72 kB / 1.356 GB, free: 14.07 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.8348, allocations: 318.8 kB / 1.356 GB, free: 13.75 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.263e-05/0.8349, allocations: 23.98 kB / 1.356 GB, free: 13.72 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.523e-05/0.8349, allocations: 51.41 kB / 1.356 GB, free: 13.66 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.8351, allocations: 83.33 kB / 1.356 GB, free: 13.57 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.8351, allocations: 0 / 1.356 GB, free: 13.57 MB / 1.042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001593/0.8352, allocations: 109.5 kB / 1.356 GB, free: 13.45 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.8352, allocations: 7.938 kB / 1.356 GB, free: 13.45 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.8352, allocations: 4.094 kB / 1.356 GB, free: 13.44 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.8353, allocations: 4 kB / 1.356 GB, free: 13.44 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.217e-05/0.8353, allocations: 15.92 kB / 1.356 GB, free: 13.42 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.8354, allocations: 0 / 1.356 GB, free: 13.42 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.024e-05/0.8354, allocations: 12 kB / 1.356 GB, free: 13.41 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.8354, allocations: 3.984 kB / 1.356 GB, free: 13.41 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.104e-05/0.8355, allocations: 118.3 kB / 1.356 GB, free: 13.28 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-06/0.8355, allocations: 7.953 kB / 1.356 GB, free: 13.27 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.8357, allocations: 110 kB / 1.357 GB, free: 13.16 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.8357, allocations: 3.938 kB / 1.357 GB, free: 13.15 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8357, allocations: 0 / 1.357 GB, free: 13.15 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8357, allocations: 0 / 1.357 GB, free: 13.15 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.836, allocations: 318.2 kB / 1.357 GB, free: 12.79 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.836, allocations: 4.062 kB / 1.357 GB, free: 12.79 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-05/0.836, allocations: 7.984 kB / 1.357 GB, free: 12.78 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.836, allocations: 4 kB / 1.357 GB, free: 12.78 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.8361, allocations: 4 kB / 1.357 GB, free: 12.77 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.8361, allocations: 0 / 1.357 GB, free: 12.77 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.8361, allocations: 3.938 kB / 1.357 GB, free: 12.77 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.8362, allocations: 195.4 kB / 1.357 GB, free: 12.56 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.047e-06/0.8362, allocations: 7.922 kB / 1.357 GB, free: 12.55 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.8362, allocations: 4 kB / 1.357 GB, free: 12.55 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.381e-05/0.8363, allocations: 7.984 kB / 1.357 GB, free: 12.54 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.8363, allocations: 7.938 kB / 1.357 GB, free: 12.54 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.8363, allocations: 4 kB / 1.357 GB, free: 12.53 MB / 1.042 GB Notification: Performance of sorting global known variables: time 3.559e-05/0.8364, allocations: 87.27 kB / 1.357 GB, free: 12.45 MB / 1.042 GB Notification: Performance of sort global known variables: time 6e-08/0.8364, allocations: 0 / 1.357 GB, free: 12.45 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0001783/0.8365, allocations: 16 kB / 1.357 GB, free: 12.43 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004148/0.837, allocations: 0.7241 MB / 1.358 GB, free: 11.68 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0001645/0.8371, allocations: 64.02 kB / 1.358 GB, free: 11.62 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8371, allocations: 4.062 kB / 1.358 GB, free: 11.61 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 5.65e-05/0.8372, allocations: 27.97 kB / 1.358 GB, free: 11.59 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.8374, allocations: 11.88 kB / 1.358 GB, free: 11.57 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.8385, allocations: 1.385 MB / 1.359 GB, free: 10.09 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.405e-05/0.8386, allocations: 71.28 kB / 1.359 GB, free: 10 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 3.939e-05/0.8386, allocations: 7.734 kB / 1.359 GB, free: 9.992 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.8387, allocations: 15.44 kB / 1.36 GB, free: 9.98 MB / 1.042 GB Notification: Performance of SimCode: time 8.41e-07/0.8387, allocations: 0 / 1.36 GB, free: 9.98 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08644/0.9251, allocations: 2.326 MB / 1.362 GB, free: 7.801 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.151/8.077, allocations: 0 / 1.362 GB, free: 7.801 MB / 1.042 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.117510340176523]