Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.001189/0.001189, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 193 kB / 16.53 MB, free: 6.391 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.566/2.566, allocations: 469.8 MB / 0.7424 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 68.09 kB / 0.9087 GB, free: 34.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2486, allocations: 159.1 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001772/0.2504, allocations: 0.6726 MB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2515, allocations: 1.078 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.2516, allocations: 0 / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.273e-05/0.2516, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.075e-05/0.2517, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.2519, allocations: 47.83 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.657e-05/0.252, allocations: 47.84 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.366e-05/0.2521, allocations: 8 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.957e-05/0.2522, allocations: 23.91 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.02e-05/0.2522, allocations: 31.91 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.2522, allocations: 4 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.608e-05/0.2523, allocations: 19.98 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.2523, allocations: 7.938 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.589e-05/0.2524, allocations: 23.91 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.2525, allocations: 51.86 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2525, allocations: 0 / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2525, allocations: 0 / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.496e-06/0.2525, allocations: 0 / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005408/0.2531, allocations: 379.6 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.2531, allocations: 8.031 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.2531, allocations: 34.75 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.2532, allocations: 8.844 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.2533, allocations: 180.2 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.2533, allocations: 4.312 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.2533, allocations: 4.375 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.2535, allocations: 66.22 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2535, allocations: 7.938 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.2535, allocations: 0 / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.2535, allocations: 0 / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.2537, allocations: 43.95 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003883/0.2541, allocations: 276.8 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.2543, allocations: 58.55 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.386e-05/0.2544, allocations: 32.95 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.2544, allocations: 0 / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.2546, allocations: 83.34 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.2546, allocations: 4 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003756/0.255, allocations: 121.6 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.255, allocations: 51.41 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.731e-05/0.2551, allocations: 109.8 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2551, allocations: 29.7 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.2552, allocations: 80.14 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.2552, allocations: 27.64 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.2553, allocations: 25.72 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2554, allocations: 322.8 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/0.2555, allocations: 19.98 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.2556, allocations: 64.2 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.2558, allocations: 96.19 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2558, allocations: 0 / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002594/0.2561, allocations: 113.6 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.2561, allocations: 4 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2561, allocations: 4 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.517e-06/0.2561, allocations: 0 / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.936e-05/0.2562, allocations: 19.92 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2562, allocations: 8.5 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.2563, allocations: 11.89 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2563, allocations: 12 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.542e-05/0.2564, allocations: 125.9 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.2564, allocations: 0 / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002695/0.2567, allocations: 117.9 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2567, allocations: 192 / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2567, allocations: 3.984 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2567, allocations: 3.938 kB / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.2572, allocations: 366.3 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2572, allocations: 0 / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.756e-05/0.2573, allocations: 11.98 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.2573, allocations: 4 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.2573, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2573, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2573, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/0.2576, allocations: 199.4 kB / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-05/0.2576, allocations: 81.02 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.2577, allocations: 4 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.2578, allocations: 11.98 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.2578, allocations: 11.88 kB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2578, allocations: 3.984 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.384e-05/0.2579, allocations: 87.28 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2579, allocations: 0 / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000224/0.2581, allocations: 15.94 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005734/0.2587, allocations: 0.7281 MB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.2589, allocations: 75.88 kB / 1.07 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2589, allocations: 0 / 1.07 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.259, allocations: 39.91 kB / 1.07 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.2593, allocations: 9.969 kB / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2607, allocations: 1.411 MB / 1.071 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.261, allocations: 0.6807 MB / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.808e-05/0.261, allocations: 11.92 kB / 1.072 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.2611, allocations: 15.44 kB / 1.072 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.2611, allocations: 0 / 1.072 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1324/0.3935, allocations: 1.8 MB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.567/9.961, allocations: 11.34 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches