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) 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 11.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007102/0.007102, allocations: 97.75 kB / 15.73 MB, free: 6.004 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.002059/0.002059, allocations: 193.1 kB / 16.67 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.816/2.816, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 63.91 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2683, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001779/0.2701, allocations: 0.7009 MB / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001343/0.2715, allocations: 1.067 MB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.2716, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.816e-05/0.2716, allocations: 7.875 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.453e-05/0.2717, allocations: 11.94 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.2719, allocations: 51.81 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2721, allocations: 59.91 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.956e-05/0.2721, allocations: 8 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.089e-05/0.2722, allocations: 35.84 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.639e-05/0.2723, allocations: 35.83 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.2723, allocations: 8 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.2724, allocations: 19.98 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.2724, allocations: 16 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.2725, allocations: 27.84 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.2726, allocations: 79.67 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2726, allocations: 4 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2726, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.2726, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 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.000607/0.2733, allocations: 379.2 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2733, allocations: 12.03 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.2734, allocations: 38.75 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.2734, allocations: 4.891 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2735, allocations: 176.2 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.2736, allocations: 8.375 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.2736, allocations: 4.375 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.2738, allocations: 78.2 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2738, allocations: 3.938 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.2738, allocations: 0 / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2738, allocations: 8 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.2741, allocations: 51.95 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/0.2746, allocations: 324.5 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.2748, allocations: 78.55 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.2749, allocations: 44.83 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.275, allocations: 7.984 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.2752, allocations: 91.48 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2752, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005279/0.2757, allocations: 177.5 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.2758, allocations: 63.39 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.223e-05/0.2759, allocations: 105.8 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.2759, allocations: 29.7 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.276, allocations: 84.38 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.2761, allocations: 31.73 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.2761, allocations: 33.7 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2763, allocations: 322.8 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.2764, allocations: 39.97 kB / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.2766, allocations: 64.22 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.2768, allocations: 98.48 kB / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2769, allocations: 0 / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003503/0.2772, allocations: 137.6 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2772, allocations: 8 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.2772, allocations: 3.984 kB / 1.225 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.2773, allocations: 0 / 1.225 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.2774, allocations: 23.92 kB / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2774, allocations: 0 / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.152e-05/0.2775, allocations: 23.95 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.2775, allocations: 7.984 kB / 1.225 GB, free: 9.422 MB / 0.9825 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.0001069/0.2776, allocations: 122.7 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.2777, allocations: 11.95 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003738/0.278, allocations: 141.9 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2781, allocations: 4 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2781, allocations: 4 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.2781, allocations: 0 / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005759/0.2787, allocations: 406.4 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2787, allocations: 0 / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.797e-05/0.2788, allocations: 15.92 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2788, allocations: 0 / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.2788, allocations: 8 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.2788, allocations: 4.234 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2788, allocations: 4 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003815/0.2792, allocations: 231.3 kB / 1.226 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.2792, allocations: 89.06 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.2793, allocations: 7.984 kB / 1.226 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.2794, allocations: 8 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.2794, allocations: 15.86 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.2795, allocations: 4 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.745e-05/0.2795, allocations: 87.27 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2795, allocations: 0 / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002597/0.2798, allocations: 23.94 kB / 1.226 GB, free: 8.145 MB / 0.9825 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.0007034/0.2805, allocations: 0.7751 MB / 1.227 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003165/0.2808, allocations: 99.88 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2808, allocations: 0 / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.281, allocations: 47.91 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.2813, allocations: 18.23 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.2831, allocations: 1.495 MB / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.2834, allocations: 0.689 MB / 1.229 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.797e-05/0.2834, allocations: 8.422 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.739e-05/0.2835, allocations: 27.36 kB / 1.229 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2835, allocations: 4 kB / 1.229 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.3055, allocations: 2.062 MB / 1.231 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.871, allocations: 5.625 kB / 1.231 GB, free: 2.895 MB / 0.9825 GB (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) 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) Reference file matches