Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.000829/0.000829, allocations: 80.52 kB / 19.95 MB, free: 4.602 MB / 18.57 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.0008226/0.0008226, allocations: 173.2 kB / 23.24 MB, free: 1.324 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.9045/0.9045, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.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.805/1.805, allocations: 389.5 MB / 0.6343 GB, free: 12.59 MB / 0.6042 GB " [Timeout remaining time 178] 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.ZeroOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 1.001 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.323e-05, allocations: 2.281 kB / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001663/0.001687, allocations: 0.6662 MB / 1.001 GB, free: 12.88 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.002833, allocations: 1.097 MB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.971e-05/0.002883, allocations: 0 / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.8e-05/0.002911, allocations: 3.938 kB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.494e-05/0.002976, allocations: 7.875 kB / 1.002 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.003272, allocations: 43.77 kB / 1.002 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.955e-05/0.003362, allocations: 59.77 kB / 1.002 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.72e-05/0.003449, allocations: 8 kB / 1.002 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.128e-05/0.00353, allocations: 31.91 kB / 1.003 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.222e-05/0.003572, allocations: 15.97 kB / 1.003 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.003588, allocations: 12 kB / 1.003 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.236e-05/0.00365, allocations: 19.98 kB / 1.003 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.25e-05/0.003673, allocations: 11.92 kB / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.003701, allocations: 15.98 kB / 1.003 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001306/0.003831, allocations: 67.77 kB / 1.003 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.003833, allocations: 0 / 1.003 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.21e-07/0.003834, allocations: 0 / 1.003 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.003838, allocations: 0 / 1.003 GB, free: 11.48 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000423/0.004261, allocations: 302.2 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.004301, allocations: 9.344 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.004333, allocations: 34.75 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.203e-05/0.004396, allocations: 8.891 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.153e-05/0.004467, allocations: 113.7 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.004479, allocations: 8.375 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.004489, allocations: 4.375 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.004626, allocations: 62.22 kB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.004635, allocations: 192 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.004643, allocations: 384 / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.004648, allocations: 12.12 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.552e-05/0.004744, allocations: 43.95 kB / 1.003 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.005075, allocations: 239.9 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.005183, allocations: 54.55 kB / 1.004 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.005237, allocations: 28.97 kB / 1.004 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.005254, allocations: 7.875 kB / 1.004 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.005399, allocations: 87.36 kB / 1.004 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.0054, allocations: 0 / 1.004 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002631/0.005663, allocations: 121.6 kB / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.005704, allocations: 55.41 kB / 1.004 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.026e-05/0.005774, allocations: 109.8 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.005788, allocations: 29.7 kB / 1.004 GB, free: 10 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/0.005824, allocations: 84.12 kB / 1.004 GB, free: 9.914 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.005845, allocations: 23.91 kB / 1.004 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.005879, allocations: 25.72 kB / 1.004 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.679e-05/0.005966, allocations: 318.8 kB / 1.004 GB, free: 9.539 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.382e-05/0.00602, allocations: 27.97 kB / 1.004 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.85e-05/0.006089, allocations: 60.47 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.006211, allocations: 108.1 kB / 1.005 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.006213, allocations: 0 / 1.005 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001545/0.006367, allocations: 117.5 kB / 1.005 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.00638, allocations: 4 kB / 1.005 GB, free: 9.191 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.006386, allocations: 4 kB / 1.005 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.006398, allocations: 0 / 1.005 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.006469, allocations: 24.05 kB / 1.005 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.006489, allocations: 7.984 kB / 1.005 GB, free: 9.156 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.336e-05/0.006522, allocations: 4 kB / 1.005 GB, free: 9.152 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.006531, allocations: 4 kB / 1.005 GB, free: 9.148 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.295e-05/0.006594, allocations: 118.7 kB / 1.005 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.058e-05/0.006604, allocations: 15.88 kB / 1.005 GB, free: 9.012 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.006762, allocations: 106 kB / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.006764, allocations: 0 / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.006768, allocations: 4 kB / 1.005 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.006771, allocations: 0 / 1.005 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002586/0.00703, allocations: 325.6 kB / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.00703, allocations: 0 / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.177e-05/0.007062, allocations: 19.92 kB / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.007064, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.007071, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.007072, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.41e-07/0.007073, allocations: 3.938 kB / 1.005 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001519/0.007225, allocations: 203.4 kB / 1.005 GB, free: 8.293 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.141e-06/0.007231, allocations: 3.938 kB / 1.005 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.007244, allocations: 8 kB / 1.005 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.665e-05/0.007291, allocations: 7.984 kB / 1.005 GB, free: 8.273 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.544e-05/0.007326, allocations: 3.984 kB / 1.005 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.007336, allocations: 4 kB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.891e-05/0.007365, allocations: 83.28 kB / 1.006 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6.1e-08/0.007365, allocations: 0 / 1.006 GB, free: 8.184 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001695/0.007535, allocations: 15.95 kB / 1.006 GB, free: 8.168 MB / 0.9636 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0003588/0.007894, allocations: 0.7474 MB / 1.006 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.008038, allocations: 64.52 kB / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.00804, allocations: 0 / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.725e-05/0.008097, allocations: 39.91 kB / 1.006 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.008274, allocations: 12.56 kB / 1.006 GB, free: 7.277 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.009327, allocations: 1.429 MB / 1.008 GB, free: 5.746 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.14e-05/0.009368, allocations: 67.34 kB / 1.008 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.048e-05/0.009399, allocations: 7.984 kB / 1.008 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.00943, allocations: 16.5 kB / 1.008 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of SimCode: time 5.91e-07/0.009431, allocations: 0 / 1.008 GB, free: 5.637 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07335/0.08278, allocations: 2.506 MB / 1.01 GB, free: 3.277 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.208/7.291, allocations: 16.67 kB / 1.01 GB, free: 3.266 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_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_ZeroOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.704202687367797]