Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0008279/0.0008279, allocations: 80.52 kB / 19.95 MB, free: 4.602 MB / 18.57 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.000877/0.000877, allocations: 173.6 kB / 23.24 MB, free: 1.324 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.9947/0.9947, allocations: 177.1 MB / 203.6 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.904/1.904, allocations: 389.6 MB / 0.6343 GB, free: 12.57 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.926e-06/2.926e-06, allocations: 0 / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.362e-05, allocations: 2.281 kB / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.003484/0.003507, allocations: 0.6808 MB / 1.001 GB, free: 12.86 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001617/0.005124, allocations: 1.097 MB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.893e-05/0.005183, allocations: 4 kB / 1.002 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.086e-05/0.005214, allocations: 3.938 kB / 1.002 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.936e-05/0.005293, allocations: 15.91 kB / 1.002 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003696/0.005663, allocations: 47.77 kB / 1.002 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.005794, allocations: 71.81 kB / 1.003 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.005897, allocations: 8 kB / 1.003 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.006007, allocations: 39.91 kB / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.758e-05/0.006074, allocations: 23.95 kB / 1.003 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.006095, allocations: 4 kB / 1.003 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.724e-05/0.006172, allocations: 27.98 kB / 1.003 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.166e-05/0.006204, allocations: 23.91 kB / 1.003 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.838e-05/0.006242, allocations: 12 kB / 1.003 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.00645, allocations: 95.66 kB / 1.003 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.006456, allocations: 3.984 kB / 1.003 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.353e-06/0.006457, allocations: 0 / 1.003 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.006462, allocations: 0 / 1.003 GB, free: 11.38 MB / 0.9636 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.0005941/0.007057, allocations: 306.1 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.007105, allocations: 9.344 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.956e-05/0.007155, allocations: 42.75 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.007255, allocations: 4.938 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.007362, allocations: 117.7 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.007389, allocations: 4.375 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.007407, allocations: 8.375 kB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.007635, allocations: 82.14 kB / 1.003 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.007644, allocations: 192 / 1.003 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.007655, allocations: 384 / 1.003 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.007662, allocations: 8.125 kB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.007827, allocations: 55.95 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.00834, allocations: 263.9 kB / 1.004 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.008526, allocations: 82.41 kB / 1.004 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.008631, allocations: 36.84 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.008652, allocations: 3.938 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002739/0.008926, allocations: 91.36 kB / 1.004 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 2.394e-06/0.008929, allocations: 0 / 1.004 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0004765/0.009405, allocations: 173.7 kB / 1.004 GB, free: 9.969 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.009452, allocations: 59.41 kB / 1.004 GB, free: 9.898 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.009537, allocations: 105.8 kB / 1.004 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.009558, allocations: 33.7 kB / 1.004 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.587e-05/0.009624, allocations: 88.42 kB / 1.004 GB, free: 9.652 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.009657, allocations: 39.67 kB / 1.004 GB, free: 9.613 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.938e-05/0.009716, allocations: 37.7 kB / 1.004 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.009808, allocations: 318.8 kB / 1.005 GB, free: 9.25 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.009914, allocations: 35.98 kB / 1.005 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.01002, allocations: 62.53 kB / 1.005 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.01023, allocations: 94.53 kB / 1.005 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.01023, allocations: 256 / 1.005 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002886/0.01052, allocations: 149.4 kB / 1.005 GB, free: 8.891 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.01054, allocations: 8 kB / 1.005 GB, free: 8.883 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01055, allocations: 4 kB / 1.005 GB, free: 8.879 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.01056, allocations: 0 / 1.005 GB, free: 8.879 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.01068, allocations: 23.92 kB / 1.005 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.01069, allocations: 0 / 1.005 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.01076, allocations: 15.98 kB / 1.005 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.01077, allocations: 8.062 kB / 1.005 GB, free: 8.832 MB / 0.9636 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.0001326/0.0109, allocations: 128.3 kB / 1.005 GB, free: 8.699 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.01092, allocations: 12.27 kB / 1.005 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.01125, allocations: 153.9 kB / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.01125, allocations: 0 / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.01126, allocations: 0 / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.01126, allocations: 0 / 1.005 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000513/0.01178, allocations: 381.4 kB / 1.006 GB, free: 8.109 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.01178, allocations: 0 / 1.006 GB, free: 8.109 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.119e-05/0.01184, allocations: 15.98 kB / 1.006 GB, free: 8.094 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01184, allocations: 0 / 1.006 GB, free: 8.094 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.01186, allocations: 4 kB / 1.006 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.01186, allocations: 0 / 1.006 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01186, allocations: 0 / 1.006 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.01217, allocations: 235.4 kB / 1.006 GB, free: 7.844 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.683e-05/0.01219, allocations: 11.94 kB / 1.006 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.01221, allocations: 4 kB / 1.006 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.509e-05/0.01231, allocations: 11.98 kB / 1.006 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.377e-05/0.01236, allocations: 7.984 kB / 1.006 GB, free: 7.809 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.01237, allocations: 4 kB / 1.006 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.179e-05/0.01241, allocations: 79.28 kB / 1.006 GB, free: 7.727 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1e-07/0.01241, allocations: 0 / 1.006 GB, free: 7.727 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002914/0.0127, allocations: 20 kB / 1.006 GB, free: 7.707 MB / 0.9636 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.0007363/0.01344, allocations: 0.7945 MB / 1.007 GB, free: 6.883 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002816/0.01372, allocations: 95.81 kB / 1.007 GB, free: 6.789 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.01372, allocations: 4 kB / 1.007 GB, free: 6.785 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.01383, allocations: 39.97 kB / 1.007 GB, free: 6.746 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.01412, allocations: 8 kB / 1.007 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.01588, allocations: 1.513 MB / 1.008 GB, free: 5.133 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.958e-05/0.01595, allocations: 67.34 kB / 1.009 GB, free: 5.047 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.812e-05/0.01599, allocations: 8.672 kB / 1.009 GB, free: 5.039 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.993e-05/0.01604, allocations: 16.5 kB / 1.009 GB, free: 5.023 MB / 0.9636 GB Notification: Performance of SimCode: time 8.12e-07/0.01604, allocations: 4 kB / 1.009 GB, free: 5.02 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08671/0.1028, allocations: 2.78 MB / 1.011 GB, free: 2.391 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.144/7.247, allocations: 8.688 kB / 1.011 GB, free: 2.387 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.997360749170184]