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.00759/0.00759, allocations: 100 kB / 15.73 MB, free: 6.008 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.001779/0.001779, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.1 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.378/2.378, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.89 kB / 1.018 GB, free: 9.945 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6911/0.6924, allocations: 151.6 MB / 1.166 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00161/0.694, allocations: 0.6817 MB / 1.167 GB, free: 3.137 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.6952, allocations: 1.064 MB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.6952, allocations: 0 / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.6953, allocations: 7.938 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.351e-05/0.6954, allocations: 19.84 kB / 1.168 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.6956, allocations: 43.89 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.977e-05/0.6957, allocations: 71.77 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.067e-05/0.6958, allocations: 8 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.268e-05/0.6959, allocations: 27.92 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.622e-05/0.696, allocations: 31.89 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.696, allocations: 8 kB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.6961, allocations: 27.92 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.277e-05/0.6961, allocations: 15.92 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.507e-05/0.6961, allocations: 39.84 kB / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.6963, allocations: 70.42 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.6963, allocations: 0 / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6963, allocations: 4 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.6963, allocations: 0 / 1.168 GB, free: 1.691 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.0005813/0.6969, allocations: 392.2 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.6969, allocations: 8.922 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.697, allocations: 38.73 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.697, allocations: 8.891 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.898e-05/0.6971, allocations: 172.3 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.6971, allocations: 4.375 kB / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.6972, allocations: 12.36 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.6974, allocations: 74.22 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.6974, allocations: 3.938 kB / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.6974, allocations: 4 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.6974, allocations: 4 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.6976, allocations: 59.88 kB / 1.169 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.6981, allocations: 304.8 kB / 1.169 GB, free: 488 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.6983, allocations: 82.64 kB / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.6984, allocations: 48.95 kB / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.6985, allocations: 7.938 kB / 1.169 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.6987, allocations: 83.38 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.6987, allocations: 0 / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of matching and sorting (n=10): time 0.0004681/0.6992, allocations: 177.5 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.6992, allocations: 55.77 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.099e-05/0.6993, allocations: 101.9 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.6994, allocations: 37.69 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.333e-05/0.6994, allocations: 84.38 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.6994, allocations: 35.7 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.6995, allocations: 29.72 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.6996, allocations: 330.8 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.6997, allocations: 35.97 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.6999, allocations: 62.48 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.7001, allocations: 98.53 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7001, allocations: 0 / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003133/0.7004, allocations: 145.4 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.7004, allocations: 8 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.7004, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.7005, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.7006, allocations: 27.92 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.7006, allocations: 4.062 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.283e-05/0.7007, allocations: 19.88 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.7007, allocations: 8 kB / 1.171 GB, free: 14.92 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 8.228e-05/0.7008, allocations: 121.8 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.7008, allocations: 15.88 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.7011, allocations: 134 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.7012, allocations: 11.98 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.7012, allocations: 0 / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.7012, allocations: 0 / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.7017, allocations: 406.3 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.7017, allocations: 256 / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.7018, allocations: 15.98 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7018, allocations: 0 / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.7018, allocations: 4 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7018, allocations: 4 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.7018, allocations: 0 / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.7021, allocations: 243.4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.7022, allocations: 85.06 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.7022, allocations: 0 / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.7023, allocations: 7.984 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.7024, allocations: 19.92 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.7024, allocations: 4 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.29e-05/0.7024, allocations: 79.28 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7024, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002672/0.7027, allocations: 27.92 kB / 1.172 GB, free: 13.66 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.0006249/0.7033, allocations: 0.7787 MB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002937/0.7036, allocations: 99.81 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.7037, allocations: 4 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.7038, allocations: 43.97 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.7041, allocations: 20.06 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.7057, allocations: 1.498 MB / 1.174 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.706, allocations: 0.6923 MB / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.99e-05/0.706, allocations: 8.422 kB / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.7061, allocations: 15.44 kB / 1.175 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of SimCode: time 3.5e-07/0.7061, allocations: 0 / 1.175 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.7256, allocations: 2.059 MB / 1.177 GB, free: 8.406 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/8.197, allocations: 8.531 kB / 1.177 GB, free: 8.398 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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