Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_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.008088/0.008088, allocations: 101.7 kB / 15.73 MB, free: 6.035 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.001599/0.001599, allocations: 198.8 kB / 16.67 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.778/1.778, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.3 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.02 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2539, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001749/0.2557, allocations: 0.6768 MB / 1.088 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.2569, allocations: 1.064 MB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.109e-05/0.257, allocations: 7.875 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.552e-05/0.257, allocations: 7.938 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.695e-05/0.2571, allocations: 3.938 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.2574, allocations: 51.81 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.684e-05/0.2575, allocations: 43.86 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.296e-05/0.2576, allocations: 11.98 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.015e-05/0.2576, allocations: 19.92 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.98e-05/0.2577, allocations: 27.91 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.2577, allocations: 4 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.427e-05/0.2578, allocations: 19.98 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.2578, allocations: 15.92 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.2578, allocations: 11.94 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.258, allocations: 67.86 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.258, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.258, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.874e-06/0.258, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 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.000522/0.2585, allocations: 362.3 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2586, allocations: 12.03 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.297e-05/0.2586, allocations: 38.73 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.2586, allocations: 8.844 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.2587, allocations: 173 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.2587, allocations: 384 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.2588, allocations: 4.375 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.259, allocations: 62.22 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.259, allocations: 3.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.259, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.259, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.2592, allocations: 47.94 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003747/0.2596, allocations: 276.8 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.2597, allocations: 58.55 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.2598, allocations: 32.97 kB / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.2599, allocations: 0 / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.26, allocations: 79.31 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.2601, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003836/0.2604, allocations: 125.6 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.2605, allocations: 59.41 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.741e-05/0.2606, allocations: 109.8 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.2606, allocations: 25.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.2607, allocations: 88.12 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.2607, allocations: 19.66 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.2607, allocations: 29.72 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.2608, allocations: 322.8 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-05/0.2609, allocations: 31.91 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.2611, allocations: 64.2 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.2613, allocations: 88.2 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2613, allocations: 7.938 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002597/0.2615, allocations: 113.5 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2616, allocations: 6.031 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.2616, allocations: 128 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2616, allocations: 8 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.927e-05/0.2617, allocations: 15.98 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.2617, allocations: 3.984 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.2618, allocations: 15.91 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2618, allocations: 4 kB / 1.092 GB, free: 13.43 MB / 0.8575 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.809e-05/0.2619, allocations: 129.7 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.2619, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002594/0.2622, allocations: 110 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2622, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2622, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.2622, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004099/0.2626, allocations: 362.3 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2626, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.021e-05/0.2627, allocations: 11.98 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2627, allocations: 4 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.2627, allocations: 4 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2627, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2627, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.263, allocations: 203.8 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.263, allocations: 84.95 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.2631, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.2632, allocations: 15.98 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.2632, allocations: 7.922 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2632, allocations: 4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.48e-05/0.2633, allocations: 87.53 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2633, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002338/0.2635, allocations: 19.98 kB / 1.093 GB, free: 12.3 MB / 0.8575 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.0005276/0.264, allocations: 0.7323 MB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.2643, allocations: 67.83 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2643, allocations: 3.938 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.2644, allocations: 44.16 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2647, allocations: 11.94 kB / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2661, allocations: 1.409 MB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.2663, allocations: 0.6846 MB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.853e-05/0.2663, allocations: 4 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.2664, allocations: 19.42 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2664, allocations: 0 / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.396/1.662, allocations: 1.816 MB / 1.097 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/14.36, allocations: 4.062 kB / 1.097 GB, free: 7.449 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches