Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) 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.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.007592/0.007591, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001825/0.001825, allocations: 188.2 kB / 16.67 MB, free: 5.973 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.63/2.63, allocations: 437.1 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3273, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002175/0.3296, allocations: 0.6814 MB / 1.167 GB, free: 6.645 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.3312, allocations: 1.066 MB / 1.168 GB, free: 5.562 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.325e-05/0.3313, allocations: 0 / 1.168 GB, free: 5.562 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.241e-05/0.3314, allocations: 3.938 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.499e-05/0.3314, allocations: 3.938 kB / 1.168 GB, free: 5.555 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.3318, allocations: 43.83 kB / 1.168 GB, free: 5.512 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.3319, allocations: 47.91 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.332, allocations: 16 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.609e-05/0.3321, allocations: 23.91 kB / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.052e-05/0.3322, allocations: 27.91 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.3322, allocations: 4 kB / 1.168 GB, free: 5.395 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.166e-05/0.3323, allocations: 19.86 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.3323, allocations: 12 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.3324, allocations: 23.84 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.3325, allocations: 51.86 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3326, allocations: 0 / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3326, allocations: 0 / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3326, allocations: 0 / 1.168 GB, free: 5.289 MB / 0.92 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.0006274/0.3332, allocations: 378.8 kB / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3333, allocations: 8.031 kB / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.296e-05/0.3333, allocations: 30.75 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.3334, allocations: 8.844 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.3335, allocations: 164.6 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.3335, allocations: 16.3 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.3335, allocations: 4.375 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.3338, allocations: 62.23 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3338, allocations: 3.938 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.3338, allocations: 7.984 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3338, allocations: 0 / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.334, allocations: 39.97 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.3345, allocations: 280.7 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.3347, allocations: 62.42 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.3348, allocations: 40.89 kB / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.3348, allocations: 0 / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.3351, allocations: 79.44 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.3351, allocations: 4 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004303/0.3355, allocations: 121.6 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.3356, allocations: 51.41 kB / 1.169 GB, free: 3.762 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.647e-05/0.3357, allocations: 105.8 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.3357, allocations: 29.7 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.3358, allocations: 88.05 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.3358, allocations: 19.75 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.3359, allocations: 29.7 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.336, allocations: 322.8 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.3361, allocations: 23.97 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.3362, allocations: 60.27 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.3364, allocations: 92.19 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3364, allocations: 4 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002739/0.3367, allocations: 117.5 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3367, allocations: 6.188 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3368, allocations: 0 / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3368, allocations: 4 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3369, allocations: 19.92 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3369, allocations: 0 / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.546e-05/0.337, allocations: 16.14 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.337, allocations: 8.125 kB / 1.17 GB, free: 2.766 MB / 0.92 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 9.629e-05/0.3371, allocations: 117.8 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.3371, allocations: 0 / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000279/0.3374, allocations: 118 kB / 1.171 GB, free: 2.52 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3374, allocations: 4 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3374, allocations: 0 / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3374, allocations: 3.984 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.3379, allocations: 366.8 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3379, allocations: 0 / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.717e-05/0.338, allocations: 15.92 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.338, allocations: 0 / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.338, allocations: 4 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.338, allocations: 4.125 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.338, allocations: 80 / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.3383, allocations: 207.4 kB / 1.171 GB, free: 1.855 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.3384, allocations: 84.95 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.3384, allocations: 0 / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3385, allocations: 11.98 kB / 1.171 GB, free: 1.742 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.3385, allocations: 7.938 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.3386, allocations: 4 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.082e-05/0.3386, allocations: 87.27 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.154e-05/0.3386, allocations: 0 / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002598/0.3389, allocations: 16 kB / 1.171 GB, free: 1.629 MB / 0.92 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.0006059/0.3395, allocations: 0.7241 MB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002662/0.3398, allocations: 79.86 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3398, allocations: 0 / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.3399, allocations: 31.92 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.3402, allocations: 19.92 kB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.3419, allocations: 1.414 MB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3423, allocations: 0.6871 MB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.705e-05/0.3423, allocations: 4 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.3424, allocations: 15.44 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of SimCode: time 2.7e-07/0.3424, allocations: 0 / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.3624, allocations: 1.812 MB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/8.043, allocations: 8.016 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches