Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.008324/0.008324, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001584/0.001585, allocations: 191.4 kB / 16.67 MB, free: 5.887 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437 MB / 0.7105 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.89 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7933/0.7946, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002119/0.7968, allocations: 0.6892 MB / 1.167 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.7984, allocations: 1.076 MB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.73e-05/0.7985, allocations: 0 / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.7985, allocations: 3.938 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.7986, allocations: 3.938 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.799, allocations: 55.81 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.7992, allocations: 63.84 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.7993, allocations: 15.97 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.7995, allocations: 35.86 kB / 1.168 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.7995, allocations: 27.91 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.7996, allocations: 4 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.7997, allocations: 23.98 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.7997, allocations: 19.91 kB / 1.168 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.094e-05/0.7998, allocations: 27.86 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.8, allocations: 71.75 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.8, allocations: 0 / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.605e-06/0.8, allocations: 0 / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.8, allocations: 0 / 1.168 GB, free: 1.625 MB / 0.8887 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.0007402/0.8007, allocations: 381.6 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.8008, allocations: 12.92 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.377e-05/0.8009, allocations: 38.73 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.771e-05/0.8009, allocations: 8.844 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.8011, allocations: 172.2 kB / 1.169 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.8011, allocations: 4.375 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.8011, allocations: 12.31 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.8014, allocations: 86.14 kB / 1.169 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.8014, allocations: 3.938 kB / 1.169 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.8014, allocations: 4 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.8014, allocations: 0 / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002059/0.8017, allocations: 51.95 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.8022, allocations: 316.6 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.8025, allocations: 86.64 kB / 1.169 GB, free: 320 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.8026, allocations: 40.78 kB / 1.169 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.8026, allocations: 3.984 kB / 1.169 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.8029, allocations: 91.5 kB / 1.169 GB, free: 168 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=10): time 2.275e-06/0.8029, allocations: 4 kB / 1.169 GB, free: 164 kB / 0.8887 GB Notification: Performance of matching and sorting (n=10): time 0.0005346/0.8035, allocations: 169.5 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.8035, allocations: 59.34 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.8036, allocations: 105.8 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.8037, allocations: 33.7 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.8037, allocations: 84.36 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.8038, allocations: 31.66 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.8038, allocations: 33.7 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.804, allocations: 322.8 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.8041, allocations: 35.97 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.8042, allocations: 62.55 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.8045, allocations: 102.5 kB / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.8045, allocations: 0 / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000319/0.8048, allocations: 141.4 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.8048, allocations: 4 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.8049, allocations: 4.438 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.8049, allocations: 4 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.805, allocations: 23.92 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.805, allocations: 0 / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.8051, allocations: 19.83 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.8052, allocations: 4 kB / 1.171 GB, free: 14.86 MB / 0.9044 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 0.0001125/0.8053, allocations: 129.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.8053, allocations: 0 / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003907/0.8057, allocations: 150.1 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.8057, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.8057, allocations: 4 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.8057, allocations: 7.984 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/0.8063, allocations: 410.3 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.8063, allocations: 0 / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.8064, allocations: 15.98 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.8064, allocations: 0 / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.8064, allocations: 7.938 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8065, allocations: 0 / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8065, allocations: 4 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003558/0.8068, allocations: 227.3 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.51e-05/0.8069, allocations: 89.03 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.8069, allocations: 8 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.807, allocations: 7.984 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.8071, allocations: 7.938 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.8071, allocations: 7.984 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.324e-05/0.8072, allocations: 83.28 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8072, allocations: 288 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002755/0.8075, allocations: 24 kB / 1.172 GB, free: 13.6 MB / 0.9044 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.0007059/0.8082, allocations: 0.7864 MB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003207/0.8085, allocations: 95.88 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8085, allocations: 0 / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.8087, allocations: 48.05 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.809, allocations: 18.42 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.8109, allocations: 1.497 MB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.8112, allocations: 0.6885 MB / 1.175 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.844e-05/0.8113, allocations: 4.438 kB / 1.175 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.437e-05/0.8113, allocations: 23.42 kB / 1.175 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of SimCode: time 1.893e-06/0.8114, allocations: 0 / 1.175 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.8334, allocations: 2.066 MB / 1.177 GB, free: 8.336 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.587, allocations: 18.56 kB / 1.177 GB, free: 8.32 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches