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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 225.6 MB / 247.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.662/2.662, allocations: 443.5 MB / 0.7287 GB, free: 14.5 MB / 0.5762 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.89 kB / 1.056 GB, free: 2.488 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3222, allocations: 160.7 MB / 1.213 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00204/0.3242, allocations: 0.6815 MB / 1.214 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.3258, allocations: 1.074 MB / 1.215 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.453e-05/0.3259, allocations: 7.938 kB / 1.215 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.3259, allocations: 7.922 kB / 1.215 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.326, allocations: 3.938 kB / 1.215 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.3263, allocations: 47.89 kB / 1.215 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.3264, allocations: 71.77 kB / 1.215 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.3265, allocations: 8 kB / 1.215 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.367e-05/0.3266, allocations: 31.91 kB / 1.215 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/0.3267, allocations: 27.91 kB / 1.215 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.3267, allocations: 8 kB / 1.215 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.871e-05/0.3268, allocations: 19.98 kB / 1.215 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.3268, allocations: 19.86 kB / 1.215 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.466e-05/0.3268, allocations: 27.91 kB / 1.215 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.327, allocations: 79.91 kB / 1.215 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.327, allocations: 4 kB / 1.215 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.327, allocations: 4 kB / 1.215 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.327, allocations: 0 / 1.215 GB, free: 15.32 MB / 0.9669 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.0007075/0.3277, allocations: 387.2 kB / 1.215 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3278, allocations: 8.031 kB / 1.215 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.3278, allocations: 30.75 kB / 1.215 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.3278, allocations: 8.891 kB / 1.215 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.328, allocations: 172.3 kB / 1.216 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.328, allocations: 12.36 kB / 1.216 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.3281, allocations: 8.312 kB / 1.216 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.3283, allocations: 78.16 kB / 1.216 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3283, allocations: 3.938 kB / 1.216 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.3283, allocations: 11.97 kB / 1.216 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3283, allocations: 4 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.3285, allocations: 51.95 kB / 1.216 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005923/0.3291, allocations: 308.8 kB / 1.216 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.3293, allocations: 78.47 kB / 1.216 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.3295, allocations: 40.83 kB / 1.216 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.3295, allocations: 4 kB / 1.216 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.3298, allocations: 87.36 kB / 1.216 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.3298, allocations: 0 / 1.216 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0005222/0.3303, allocations: 169.7 kB / 1.216 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/0.3303, allocations: 67.38 kB / 1.216 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.912e-05/0.3304, allocations: 110.2 kB / 1.217 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.3305, allocations: 33.64 kB / 1.217 GB, free: 13.46 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.304e-05/0.3305, allocations: 88.31 kB / 1.217 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.436e-05/0.3306, allocations: 27.84 kB / 1.217 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.3306, allocations: 29.66 kB / 1.217 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3308, allocations: 326.8 kB / 1.217 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3309, allocations: 36.08 kB / 1.217 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.3311, allocations: 73.52 kB / 1.217 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.3313, allocations: 102.4 kB / 1.217 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3313, allocations: 0 / 1.217 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003362/0.3317, allocations: 141.5 kB / 1.217 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3317, allocations: 10.19 kB / 1.217 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3317, allocations: 0 / 1.217 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.3317, allocations: 0 / 1.217 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3318, allocations: 19.98 kB / 1.217 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.3318, allocations: 7.984 kB / 1.217 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.057e-05/0.3319, allocations: 11.95 kB / 1.217 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.3319, allocations: 4 kB / 1.217 GB, free: 12.56 MB / 0.9669 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.0001112/0.332, allocations: 137.7 kB / 1.218 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.332, allocations: 7.953 kB / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003508/0.3324, allocations: 141.9 kB / 1.218 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3324, allocations: 4 kB / 1.218 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3324, allocations: 0 / 1.218 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3324, allocations: 0 / 1.218 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005717/0.333, allocations: 406.4 kB / 1.218 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.333, allocations: 0 / 1.218 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.3331, allocations: 11.98 kB / 1.218 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3331, allocations: 4 kB / 1.218 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.3331, allocations: 4 kB / 1.218 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3331, allocations: 0 / 1.218 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3331, allocations: 4.234 kB / 1.218 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.3334, allocations: 247.4 kB / 1.218 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.131e-05/0.3335, allocations: 85 kB / 1.218 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.3335, allocations: 8 kB / 1.218 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.3336, allocations: 11.98 kB / 1.218 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.3337, allocations: 11.92 kB / 1.218 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.3337, allocations: 0 / 1.218 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.428e-05/0.3337, allocations: 87.28 kB / 1.219 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3337, allocations: 0 / 1.219 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000251/0.334, allocations: 23.98 kB / 1.219 GB, free: 11.29 MB / 0.9669 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.0007816/0.3348, allocations: 0.7709 MB / 1.219 GB, free: 10.49 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.3351, allocations: 99.88 kB / 1.219 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3351, allocations: 0 / 1.219 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.3352, allocations: 39.97 kB / 1.219 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3355, allocations: 10.17 kB / 1.219 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.3374, allocations: 1.511 MB / 1.221 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.3378, allocations: 0.6846 MB / 1.222 GB, free: 8.031 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.376e-05/0.3378, allocations: 16.36 kB / 1.222 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.3378, allocations: 19.44 kB / 1.222 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of SimCode: time 5.01e-07/0.3378, allocations: 0 / 1.222 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.3632, allocations: 2.063 MB / 1.224 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.66, allocations: 18.86 kB / 1.224 GB, free: 6.023 MB / 0.9669 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=400 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 14.729092626832426]