Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008274/0.0008274, allocations: 68.47 kB / 19.17 MB, free: 0.7344 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.0008907/0.0008907, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.8865/0.8865, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.758/1.758, allocations: 389 MB / 0.633 GB, free: 12.66 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.216e-06/3.216e-06, allocations: 3.938 kB / 0.9996 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.492e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001409/0.001434, allocations: 0.6662 MB / 1 GB, free: 12.84 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.002586, allocations: 1.101 MB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003665/0.002953, allocations: 4 kB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.002981, allocations: 3.938 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.003042, allocations: 7.875 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.003346, allocations: 51.75 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.003451, allocations: 75.77 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.003546, allocations: 11.92 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.089e-05/0.003627, allocations: 39.89 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.062e-05/0.003678, allocations: 27.91 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.003695, allocations: 8 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.983e-05/0.003755, allocations: 23.98 kB / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.03e-05/0.003775, allocations: 11.98 kB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.413e-05/0.003809, allocations: 27.91 kB / 1.002 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.003952, allocations: 83.73 kB / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.003955, allocations: 0 / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.212e-06/0.003956, allocations: 0 / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.00396, allocations: 0 / 1.002 GB, free: 11.35 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004541/0.004414, allocations: 306.1 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.004455, allocations: 12.75 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.148e-05/0.004486, allocations: 38.73 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.745e-05/0.004554, allocations: 12.89 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.695e-05/0.004631, allocations: 113.7 kB / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.004653, allocations: 12.36 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.004666, allocations: 4.375 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.004834, allocations: 78.22 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.004842, allocations: 192 / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.004853, allocations: 4.375 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.004861, allocations: 8.109 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.004973, allocations: 59.89 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004132/0.005386, allocations: 259.9 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.005529, allocations: 74.48 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.429e-05/0.005593, allocations: 40.83 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.005614, allocations: 7.938 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.005796, allocations: 95.48 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.005797, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0003166/0.006114, allocations: 181.7 kB / 1.003 GB, free: 9.926 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.006152, allocations: 55.41 kB / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.762e-05/0.00622, allocations: 105.8 kB / 1.003 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.006237, allocations: 29.7 kB / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.006281, allocations: 92.33 kB / 1.003 GB, free: 9.613 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.006307, allocations: 35.83 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.054e-05/0.006347, allocations: 29.7 kB / 1.003 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.395e-05/0.006431, allocations: 318.8 kB / 1.004 GB, free: 9.223 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.505e-05/0.006506, allocations: 39.91 kB / 1.004 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.691e-05/0.006583, allocations: 58.55 kB / 1.004 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.006725, allocations: 102.5 kB / 1.004 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.006728, allocations: 4 kB / 1.004 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001905/0.006918, allocations: 149.5 kB / 1.004 GB, free: 8.852 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.006934, allocations: 4 kB / 1.004 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.006941, allocations: 4 kB / 1.004 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.006957, allocations: 0 / 1.004 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.399e-05/0.007051, allocations: 27.97 kB / 1.004 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.007057, allocations: 0 / 1.004 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.725e-05/0.007095, allocations: 8.062 kB / 1.004 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.007105, allocations: 4 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.18e-05/0.007187, allocations: 129.8 kB / 1.004 GB, free: 8.668 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.007199, allocations: 11.89 kB / 1.004 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.007421, allocations: 142 kB / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.007425, allocations: 0 / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.00743, allocations: 4 kB / 1.004 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.007436, allocations: 3.984 kB / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003709/0.007807, allocations: 381.4 kB / 1.005 GB, free: 8.082 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.007809, allocations: 0 / 1.005 GB, free: 8.082 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-05/0.007847, allocations: 11.98 kB / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.00785, allocations: 0 / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.007858, allocations: 288 / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.007861, allocations: 3.984 kB / 1.005 GB, free: 8.066 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.007863, allocations: 4 kB / 1.005 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.008068, allocations: 243.2 kB / 1.005 GB, free: 7.809 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.199e-05/0.00808, allocations: 7.953 kB / 1.005 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.008094, allocations: 4.25 kB / 1.005 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.604e-05/0.008151, allocations: 11.98 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.008192, allocations: 11.98 kB / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.008201, allocations: 4 kB / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.418e-05/0.008235, allocations: 87.27 kB / 1.005 GB, free: 7.684 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008235, allocations: 3.938 kB / 1.005 GB, free: 7.68 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001823/0.008417, allocations: 16 kB / 1.005 GB, free: 7.664 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004505/0.008868, allocations: 0.7787 MB / 1.006 GB, free: 6.855 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001983/0.009066, allocations: 95.88 kB / 1.006 GB, free: 6.762 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.009067, allocations: 0 / 1.006 GB, free: 6.762 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.258e-05/0.00914, allocations: 43.91 kB / 1.006 GB, free: 6.719 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.009353, allocations: 16.11 kB / 1.006 GB, free: 6.707 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.01059, allocations: 1.517 MB / 1.007 GB, free: 5.102 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.607e-05/0.01065, allocations: 71.28 kB / 1.008 GB, free: 5.012 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.894e-05/0.01069, allocations: 8.484 kB / 1.008 GB, free: 5.004 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.01073, allocations: 24.5 kB / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of SimCode: time 1.072e-06/0.01073, allocations: 0 / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.02653, allocations: 2.771 MB / 1.01 GB, free: 2.355 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.531/6.557, allocations: 7.984 kB / 1.01 GB, free: 2.348 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.553972702473402]