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.001376/0.001376, allocations: 112.2 kB / 17.54 MB, free: 4.641 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.001398/0.001398, allocations: 190.6 kB / 20.71 MB, free: 1.484 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.316/1.316, allocations: 225.6 MB / 249.3 MB, free: 3.172 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.523/2.523, allocations: 476.7 MB / 0.7628 GB, free: 15.15 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.001765/0.001765, allocations: 67.89 kB / 1.107 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7417/0.7435, allocations: 168.7 MB / 1.271 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001545/0.745, allocations: 0.713 MB / 1.272 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009817/0.746, allocations: 1.069 MB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.277e-05/0.746, allocations: 0.75 kB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.225e-05/0.7461, allocations: 4.625 kB / 1.273 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.478e-05/0.7461, allocations: 9.641 kB / 1.273 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.7463, allocations: 54.03 kB / 1.273 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.445e-05/0.7464, allocations: 71.95 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.022e-05/0.7465, allocations: 9.344 kB / 1.273 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.213e-05/0.7466, allocations: 30.33 kB / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.616e-05/0.7466, allocations: 33.33 kB / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.7467, allocations: 6.5 kB / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.746e-05/0.7467, allocations: 20.23 kB / 1.273 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.023e-05/0.7467, allocations: 14.91 kB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.621e-05/0.7468, allocations: 34.09 kB / 1.273 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.7469, allocations: 78.28 kB / 1.273 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.7469, allocations: 4.75 kB / 1.273 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7469, allocations: 0 / 1.273 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7469, allocations: 0.6562 kB / 1.273 GB, free: 6.305 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.0004829/0.7474, allocations: 376.1 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.7474, allocations: 9.609 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.179e-05/0.7475, allocations: 37.86 kB / 1.274 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.7475, allocations: 9.016 kB / 1.274 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.908e-05/0.7476, allocations: 176 kB / 1.274 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.7476, allocations: 8.141 kB / 1.274 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.7476, allocations: 6.219 kB / 1.274 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.7478, allocations: 78 kB / 1.274 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.7478, allocations: 3.938 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.7478, allocations: 1 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.7478, allocations: 1.25 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.748, allocations: 54.52 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003763/0.7484, allocations: 315.5 kB / 1.274 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.7485, allocations: 73.91 kB / 1.275 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.7486, allocations: 41.12 kB / 1.275 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.7487, allocations: 1.094 kB / 1.275 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/0.7488, allocations: 97.33 kB / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.7488, allocations: 0 / 1.275 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004418/0.7493, allocations: 176.5 kB / 1.275 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.7493, allocations: 54.44 kB / 1.275 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.09e-05/0.7494, allocations: 113.7 kB / 1.275 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.7494, allocations: 28.67 kB / 1.275 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.287e-05/0.7494, allocations: 85.44 kB / 1.275 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.7494, allocations: 36.45 kB / 1.275 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/0.7495, allocations: 33.78 kB / 1.275 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.685e-05/0.7495, allocations: 323 kB / 1.276 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.7496, allocations: 37.5 kB / 1.276 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.7497, allocations: 63.77 kB / 1.276 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.7499, allocations: 98.8 kB / 1.276 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.7499, allocations: 1.156 kB / 1.276 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002872/0.7502, allocations: 153.7 kB / 1.276 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.7502, allocations: 6.812 kB / 1.276 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.7503, allocations: 1.406 kB / 1.276 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.7503, allocations: 1.031 kB / 1.276 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.7504, allocations: 22.8 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.7504, allocations: 2.219 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.846e-05/0.7505, allocations: 16.77 kB / 1.276 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.7505, allocations: 3.75 kB / 1.276 GB, free: 4.262 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.705e-05/0.7505, allocations: 127.9 kB / 1.276 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.7505, allocations: 9.719 kB / 1.276 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.7508, allocations: 142.8 kB / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.7508, allocations: 1.156 kB / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.7509, allocations: 0 / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7509, allocations: 3.188 kB / 1.276 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.7513, allocations: 410.6 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7513, allocations: 1.609 kB / 1.277 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-05/0.7513, allocations: 15.67 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.7513, allocations: 0 / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.7513, allocations: 2 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.7513, allocations: 1.125 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.7513, allocations: 4.844 kB / 1.277 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.7516, allocations: 244.3 kB / 1.277 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.696e-05/0.7517, allocations: 82.34 kB / 1.277 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.7517, allocations: 4.266 kB / 1.277 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.992e-05/0.7518, allocations: 10.53 kB / 1.277 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.417e-05/0.7518, allocations: 11.05 kB / 1.277 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.7518, allocations: 1.875 kB / 1.277 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.281e-05/0.7518, allocations: 90.55 kB / 1.277 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7518, allocations: 1 kB / 1.277 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002351/0.7521, allocations: 20.2 kB / 1.277 GB, free: 3.336 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.0004602/0.7525, allocations: 0.7775 MB / 1.278 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.7528, allocations: 95.89 kB / 1.278 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.7528, allocations: 0 / 1.278 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.7529, allocations: 46.3 kB / 1.278 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.7532, allocations: 13.47 kB / 1.278 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.7546, allocations: 1.503 MB / 1.279 GB, free: 17.29 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.7548, allocations: 0.6859 MB / 1.28 GB, free: 16.59 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.338e-05/0.7549, allocations: 19.28 kB / 1.28 GB, free: 16.58 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.7549, allocations: 23.92 kB / 1.28 GB, free: 16.56 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/0.7549, allocations: 0 / 1.28 GB, free: 16.56 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.7785, allocations: 2.057 MB / 1.282 GB, free: 16.15 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.004/7.782, allocations: 5.875 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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: 13.206491623001057]