Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 106.8 kB / 17.54 MB, free: 4.766 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 181.9 kB / 20.71 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 225.6 MB / 249.3 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.485/2.485, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 71.88 kB / 1.107 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7545/0.7564, allocations: 168.7 MB / 1.271 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001644/0.758, allocations: 0.6974 MB / 1.272 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.759, allocations: 1.078 MB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.102e-05/0.7591, allocations: 0.8125 kB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.7591, allocations: 4.453 kB / 1.273 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.481e-05/0.7592, allocations: 6.375 kB / 1.273 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.7594, allocations: 48.64 kB / 1.273 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.7595, allocations: 72.38 kB / 1.273 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.837e-05/0.7596, allocations: 9.953 kB / 1.273 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.364e-05/0.7597, allocations: 30.12 kB / 1.273 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.999e-05/0.7597, allocations: 33.77 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.7597, allocations: 6.5 kB / 1.273 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.7598, allocations: 20.03 kB / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.086e-05/0.7598, allocations: 22.19 kB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.63e-05/0.7598, allocations: 25.95 kB / 1.273 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.76, allocations: 78.53 kB / 1.273 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.76, allocations: 1.438 kB / 1.273 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.313e-06/0.76, allocations: 0 / 1.273 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.76, allocations: 0.9062 kB / 1.273 GB, free: 6.316 MB / 0.9981 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.000483/0.7605, allocations: 380.7 kB / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.7605, allocations: 9.375 kB / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.165e-05/0.7605, allocations: 43.33 kB / 1.274 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.7606, allocations: 8.672 kB / 1.274 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.482e-05/0.7606, allocations: 166.5 kB / 1.274 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.7607, allocations: 7.188 kB / 1.274 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.7607, allocations: 7.406 kB / 1.274 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.7609, allocations: 84.72 kB / 1.274 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.7609, allocations: 3.938 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.7609, allocations: 3.781 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.7609, allocations: 0.875 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.7611, allocations: 58.45 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.7615, allocations: 309.8 kB / 1.274 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.7616, allocations: 78.78 kB / 1.275 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.7617, allocations: 40.28 kB / 1.275 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.7618, allocations: 2.219 kB / 1.275 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.7619, allocations: 90 kB / 1.275 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.7619, allocations: 4 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004268/0.7624, allocations: 172.6 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.7624, allocations: 55.59 kB / 1.275 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.219e-05/0.7624, allocations: 114.5 kB / 1.275 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.7624, allocations: 27.83 kB / 1.275 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.423e-05/0.7625, allocations: 88.7 kB / 1.275 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.7625, allocations: 28.84 kB / 1.275 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.7625, allocations: 43.39 kB / 1.275 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.7626, allocations: 318.3 kB / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.7627, allocations: 40.36 kB / 1.276 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.7628, allocations: 64.3 kB / 1.276 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.763, allocations: 97.94 kB / 1.276 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.763, allocations: 0 / 1.276 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002832/0.7633, allocations: 146.6 kB / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.7633, allocations: 6.375 kB / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.7633, allocations: 0 / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.7633, allocations: 7.062 kB / 1.276 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.7634, allocations: 22.64 kB / 1.276 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.7634, allocations: 1.531 kB / 1.276 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.659e-05/0.7635, allocations: 17.05 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.7635, allocations: 7.719 kB / 1.276 GB, free: 4.266 MB / 0.9981 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 5.434e-05/0.7636, allocations: 124 kB / 1.276 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.7636, allocations: 8.172 kB / 1.276 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.7639, allocations: 148.3 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.7639, allocations: 5.703 kB / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.7639, allocations: 0 / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.7639, allocations: 1.125 kB / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.7643, allocations: 412.1 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.7643, allocations: 0.5938 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.4e-05/0.7644, allocations: 10.08 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.7644, allocations: 4.906 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.7644, allocations: 1.844 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7644, allocations: 2.875 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.7644, allocations: 0 / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.7647, allocations: 238.4 kB / 1.277 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.7647, allocations: 82.81 kB / 1.277 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.7647, allocations: 7.922 kB / 1.277 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.927e-05/0.7648, allocations: 11.58 kB / 1.277 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.242e-05/0.7648, allocations: 10.59 kB / 1.277 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.7648, allocations: 5.078 kB / 1.277 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.246e-05/0.7649, allocations: 88.25 kB / 1.277 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7649, allocations: 0.75 kB / 1.277 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002257/0.7651, allocations: 20.67 kB / 1.277 GB, free: 3.34 MB / 0.9981 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.0004658/0.7656, allocations: 0.785 MB / 1.278 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002736/0.7658, allocations: 95.23 kB / 1.278 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7658, allocations: 0.9688 kB / 1.278 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.766, allocations: 47 kB / 1.278 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.7662, allocations: 16.08 kB / 1.278 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.7676, allocations: 1.502 MB / 1.279 GB, free: 17.28 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.7679, allocations: 0.689 MB / 1.28 GB, free: 16.58 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.172e-05/0.7679, allocations: 7.344 kB / 1.28 GB, free: 16.58 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.129e-05/0.7679, allocations: 18.75 kB / 1.28 GB, free: 16.57 MB / 1.014 GB Notification: Performance of SimCode: time 3.2e-07/0.7679, allocations: 0 / 1.28 GB, free: 16.57 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.7918, allocations: 2.064 MB / 1.282 GB, free: 16.15 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/7.682, allocations: 5.344 kB / 1.282 GB, free: 16.15 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 12.940884128000107]