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.005254/0.005254, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001395/0.001395, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.503/2.503, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 63.89 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2435, allocations: 159.1 MB / 1.22 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001528/0.245, allocations: 0.6815 MB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.2462, allocations: 1.067 MB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.753e-05/0.2462, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.627e-05/0.2462, allocations: 3.938 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.424e-05/0.2463, allocations: 19.84 kB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.2465, allocations: 47.83 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.728e-05/0.2466, allocations: 67.83 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.493e-05/0.2467, allocations: 8 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.018e-05/0.2468, allocations: 27.92 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.2468, allocations: 31.89 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.2469, allocations: 15.94 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.845e-05/0.2469, allocations: 19.98 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.214e-05/0.247, allocations: 19.92 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.644e-05/0.247, allocations: 23.86 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.2471, allocations: 79.69 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2471, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2472, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.2472, 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.0005432/0.2477, allocations: 391.2 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2477, allocations: 8.031 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.2478, allocations: 42.67 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.754e-05/0.2478, allocations: 8.891 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2479, allocations: 168.3 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2479, allocations: 4.375 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.248, allocations: 8.359 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.2482, allocations: 78.22 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2482, allocations: 7.938 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.2482, allocations: 4 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2482, allocations: 0 / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.2484, allocations: 59.88 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.2489, allocations: 304.7 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.2491, allocations: 90.53 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.2492, allocations: 40.83 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2492, allocations: 4.188 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.2494, allocations: 87.31 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.2494, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004421/0.2499, allocations: 177.5 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.2499, allocations: 59.39 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.25, allocations: 106.2 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.25, allocations: 33.69 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.467e-05/0.2501, allocations: 88.38 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.2501, allocations: 31.73 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.2502, allocations: 37.64 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2503, allocations: 326.8 kB / 1.224 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.2504, allocations: 35.97 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.2505, allocations: 62.48 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.2508, allocations: 102.5 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2508, allocations: 0 / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002983/0.2511, allocations: 141.6 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.2511, allocations: 5.562 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2511, allocations: 0 / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.2511, allocations: 0 / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2512, allocations: 31.98 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2513, allocations: 4 kB / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.965e-05/0.2513, allocations: 15.88 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2513, allocations: 4 kB / 1.225 GB, free: 9.414 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 9.066e-05/0.2514, allocations: 126.3 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.2515, allocations: 11.94 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.2518, allocations: 146 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2518, allocations: 3.984 kB / 1.225 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2518, allocations: 3.984 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2518, allocations: 0 / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.2523, allocations: 406.3 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2523, allocations: 0 / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.567e-05/0.2524, allocations: 11.98 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2524, allocations: 8 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.2524, allocations: 0 / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.2524, allocations: 0 / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2524, allocations: 0 / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000327/0.2528, allocations: 247.4 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.2528, allocations: 81.06 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.2528, allocations: 0 / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-05/0.2529, allocations: 15.98 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.253, allocations: 15.92 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.253, allocations: 3.938 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.25e-05/0.253, allocations: 83.53 kB / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.253, allocations: 4 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002196/0.2533, allocations: 19.94 kB / 1.226 GB, free: 8.137 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.0006147/0.2539, allocations: 0.7804 MB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000273/0.2542, allocations: 99.88 kB / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2542, allocations: 0 / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.2543, allocations: 56.03 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.2545, allocations: 7.938 kB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.2561, allocations: 1.504 MB / 1.228 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.2563, allocations: 0.6851 MB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.419e-05/0.2564, allocations: 12.36 kB / 1.229 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.792e-05/0.2564, allocations: 19.44 kB / 1.229 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.2564, allocations: 0 / 1.229 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.338/4.594, allocations: 2.054 MB / 1.231 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/21.99, allocations: 5.781 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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