Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009182/0.0009182, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9084/0.9084, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.693/1.693, allocations: 377.8 MB / 0.6221 GB, free: 8.68 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.785e-06/2.785e-06, allocations: 0 / 0.9809 GB, free: 2.645 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.278e-05, allocations: 6.281 kB / 0.9809 GB, free: 2.637 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001542/0.001564, allocations: 0.6909 MB / 0.9816 GB, free: 1.953 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.002585, allocations: 1.092 MB / 0.9827 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.159e-05/0.002636, allocations: 4 kB / 0.9827 GB, free: 0.8438 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.817e-05/0.002665, allocations: 3.938 kB / 0.9827 GB, free: 0.8398 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6e-05/0.002725, allocations: 7.922 kB / 0.9827 GB, free: 0.832 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.002998, allocations: 59.69 kB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.276e-05/0.00309, allocations: 63.84 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.077e-05/0.003181, allocations: 15.97 kB / 0.9828 GB, free: 0.6953 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.853e-05/0.00326, allocations: 35.91 kB / 0.9829 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.442e-05/0.003304, allocations: 27.95 kB / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.003319, allocations: 4 kB / 0.9829 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.869e-05/0.003378, allocations: 27.92 kB / 0.9829 GB, free: 0.6016 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.126e-05/0.003399, allocations: 19.98 kB / 0.9829 GB, free: 0.582 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.003428, allocations: 15.92 kB / 0.9829 GB, free: 0.5664 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.003559, allocations: 87.72 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.003563, allocations: 4 kB / 0.983 GB, free: 488 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.353e-06/0.003564, allocations: 0 / 0.983 GB, free: 488 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.868e-06/0.003568, allocations: 0 / 0.983 GB, free: 488 kB / 0.9323 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.0004352/0.004003, allocations: 314 kB / 0.9833 GB, free: 140 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.004041, allocations: 12.02 kB / 0.9833 GB, free: 128 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/0.004078, allocations: 42.75 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.633e-05/0.004144, allocations: 8.891 kB / 0.9834 GB, free: 68 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.389e-05/0.004228, allocations: 109.8 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.004249, allocations: 8.344 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.004265, allocations: 12.38 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.004411, allocations: 78.16 kB / 0.9836 GB, free: 15.83 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.004417, allocations: 192 / 0.9836 GB, free: 15.83 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.004427, allocations: 4.359 kB / 0.9836 GB, free: 15.83 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.004433, allocations: 4.125 kB / 0.9836 GB, free: 15.82 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.004542, allocations: 59.95 kB / 0.9837 GB, free: 15.77 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003504/0.004893, allocations: 263.9 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.005016, allocations: 74.48 kB / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.233e-05/0.005079, allocations: 44.77 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.005099, allocations: 3.938 kB / 0.984 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/0.005247, allocations: 95.34 kB / 0.9841 GB, free: 15.23 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.005248, allocations: 0 / 0.9841 GB, free: 15.23 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0002959/0.005544, allocations: 173.8 kB / 0.9843 GB, free: 15.05 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.005581, allocations: 59.34 kB / 0.9843 GB, free: 14.98 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.736e-05/0.005638, allocations: 109.8 kB / 0.9844 GB, free: 14.86 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.005652, allocations: 29.7 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.005961, allocations: 84.38 kB / 0.9846 GB, free: 14.74 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.005984, allocations: 27.8 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-05/0.006023, allocations: 41.7 kB / 0.9846 GB, free: 14.66 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.006098, allocations: 314.8 kB / 0.9849 GB, free: 14.35 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.574e-05/0.006174, allocations: 43.91 kB / 0.985 GB, free: 14.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.34e-05/0.006248, allocations: 62.55 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.006378, allocations: 90.55 kB / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.00638, allocations: 0 / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001758/0.006556, allocations: 149.5 kB / 0.9853 GB, free: 13.98 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.00657, allocations: 10.34 kB / 0.9853 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.006576, allocations: 7.922 kB / 0.9853 GB, free: 13.97 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.006588, allocations: 0 / 0.9853 GB, free: 13.97 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.829e-05/0.006667, allocations: 19.98 kB / 0.9853 GB, free: 13.95 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.006672, allocations: 0 / 0.9853 GB, free: 13.95 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.371e-05/0.006706, allocations: 15.95 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.006715, allocations: 8.062 kB / 0.9853 GB, free: 13.93 MB / 0.948 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 7.283e-05/0.006787, allocations: 126.3 kB / 0.9854 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.006798, allocations: 11.89 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.006997, allocations: 146.4 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.007001, allocations: 7.938 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.007005, allocations: 0 / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.007009, allocations: 0 / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.007335, allocations: 377.4 kB / 0.986 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.007337, allocations: 256 / 0.986 GB, free: 13.21 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.284e-05/0.00737, allocations: 15.98 kB / 0.986 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.007372, allocations: 0 / 0.986 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.007382, allocations: 7.984 kB / 0.986 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.007384, allocations: 4 kB / 0.986 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007385, allocations: 0 / 0.986 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.007567, allocations: 239.3 kB / 0.9862 GB, free: 12.93 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.024e-05/0.007578, allocations: 15.94 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.007593, allocations: 7.984 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.813e-05/0.007641, allocations: 4 kB / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.007679, allocations: 7.984 kB / 0.9862 GB, free: 12.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.669e-06/0.007689, allocations: 11.98 kB / 0.9863 GB, free: 12.88 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.059e-05/0.00772, allocations: 79.28 kB / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.00772, allocations: 0 / 0.9863 GB, free: 12.8 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001676/0.007887, allocations: 20 kB / 0.9863 GB, free: 12.79 MB / 0.948 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.0004251/0.008312, allocations: 0.7751 MB / 0.9871 GB, free: 11.98 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001963/0.008509, allocations: 107.8 kB / 0.9872 GB, free: 11.88 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.00851, allocations: 0 / 0.9872 GB, free: 11.88 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.827e-05/0.008578, allocations: 43.97 kB / 0.9872 GB, free: 11.84 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.008769, allocations: 13.88 kB / 0.9873 GB, free: 11.82 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.00985, allocations: 1.506 MB / 0.9887 GB, free: 10.23 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.479e-05/0.009895, allocations: 67.59 kB / 0.9888 GB, free: 10.14 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.178e-05/0.009927, allocations: 8.484 kB / 0.9888 GB, free: 10.13 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.75e-05/0.009964, allocations: 20.5 kB / 0.9888 GB, free: 10.11 MB / 0.948 GB Notification: Performance of SimCode: time 5.41e-07/0.009965, allocations: 4 kB / 0.9888 GB, free: 10.11 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.02661, allocations: 2.777 MB / 0.9915 GB, free: 7.492 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.01/7.036, allocations: 9.125 kB / 0.9915 GB, free: 7.488 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.14960952103138]