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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005284/0.005289, allocations: 99.33 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 192.9 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.46/2.46, allocations: 482.6 MB / 0.7551 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 64.16 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2618, allocations: 162.3 MB / 1.242 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00163/0.2634, allocations: 0.6853 MB / 1.243 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2646, allocations: 1.063 MB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.707e-05/0.2646, allocations: 0 / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.549e-05/0.2647, allocations: 3.938 kB / 1.244 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.357e-05/0.2647, allocations: 19.86 kB / 1.244 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.265, allocations: 39.89 kB / 1.244 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2651, allocations: 71.78 kB / 1.244 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.763e-05/0.2652, allocations: 13.38 kB / 1.244 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.745e-05/0.2652, allocations: 31.91 kB / 1.244 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.568e-05/0.2653, allocations: 31.91 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.2653, allocations: 8 kB / 1.244 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.2654, allocations: 19.98 kB / 1.244 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.2654, allocations: 15.92 kB / 1.244 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.225e-05/0.2655, allocations: 35.84 kB / 1.244 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.2656, allocations: 79.97 kB / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2656, allocations: 0 / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2656, allocations: 0 / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.2656, allocations: 0 / 1.244 GB, free: 6.824 MB / 0.9669 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.0005532/0.2662, allocations: 383.2 kB / 1.244 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.2662, allocations: 8.031 kB / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.303e-05/0.2663, allocations: 46.73 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.698e-05/0.2663, allocations: 4.891 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.2664, allocations: 168.3 kB / 1.244 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.2665, allocations: 8.312 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.2665, allocations: 12.36 kB / 1.245 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.2667, allocations: 78.2 kB / 1.245 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2667, allocations: 11.88 kB / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2667, allocations: 4 kB / 1.245 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2667, allocations: 0 / 1.245 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.2669, allocations: 59.94 kB / 1.245 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000446/0.2674, allocations: 304.8 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.2676, allocations: 78.72 kB / 1.245 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.2677, allocations: 56.77 kB / 1.245 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.2677, allocations: 0 / 1.245 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.2679, allocations: 87.38 kB / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.2679, allocations: 0 / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0004516/0.2684, allocations: 173.5 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.2684, allocations: 59.5 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.828e-05/0.2685, allocations: 117.7 kB / 1.245 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.2686, allocations: 25.7 kB / 1.246 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.2686, allocations: 92.36 kB / 1.246 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.548e-05/0.2686, allocations: 23.8 kB / 1.246 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.2687, allocations: 29.7 kB / 1.246 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.2688, allocations: 326.8 kB / 1.246 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2689, allocations: 43.91 kB / 1.246 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.2691, allocations: 60.94 kB / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.2693, allocations: 98.47 kB / 1.246 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2693, allocations: 4 kB / 1.246 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003006/0.2696, allocations: 141.5 kB / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2697, allocations: 12.31 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.2697, allocations: 0 / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.2697, allocations: 0 / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.2698, allocations: 23.92 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.2698, allocations: 3.938 kB / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.347e-05/0.2699, allocations: 27.94 kB / 1.246 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.2699, allocations: 7.984 kB / 1.246 GB, free: 4.039 MB / 0.9669 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.653e-05/0.27, allocations: 126.2 kB / 1.246 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.27, allocations: 7.953 kB / 1.246 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003195/0.2703, allocations: 141.9 kB / 1.247 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2704, allocations: 4 kB / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2704, allocations: 0 / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2704, allocations: 7.984 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004962/0.2709, allocations: 406.4 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2709, allocations: 0 / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-05/0.271, allocations: 11.98 kB / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.271, allocations: 4 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.271, allocations: 256 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.271, allocations: 4 kB / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.271, allocations: 4 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.2713, allocations: 239.3 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.2714, allocations: 85.05 kB / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.2714, allocations: 0 / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.2715, allocations: 15.98 kB / 1.247 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.501e-05/0.2716, allocations: 11.91 kB / 1.247 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.2716, allocations: 8 kB / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.485e-05/0.2716, allocations: 83.56 kB / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2716, allocations: 0 / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002252/0.2718, allocations: 19.95 kB / 1.247 GB, free: 2.777 MB / 0.9669 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.0006306/0.2725, allocations: 0.7807 MB / 1.248 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000281/0.2728, allocations: 103.8 kB / 1.248 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2728, allocations: 3.938 kB / 1.248 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.2729, allocations: 43.97 kB / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.2732, allocations: 11.94 kB / 1.248 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.2748, allocations: 1.496 MB / 1.25 GB, free: 236 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2751, allocations: 0.6924 MB / 1.251 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.2751, allocations: 4.438 kB / 1.251 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.2752, allocations: 23.42 kB / 1.251 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.2752, allocations: 0 / 1.251 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1252/0.4004, allocations: 2.053 MB / 1.253 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.152/9.553, allocations: 9.125 kB / 1.253 GB, free: 13.55 MB / 0.9825 GB (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 --timeout=400 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches