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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001251, allocations: 101.7 kB / 16.27 MB, free: 5.969 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.001777/0.001777, allocations: 191.4 kB / 17.2 MB, free: 5.594 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.369/1.369, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.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.322/2.322, allocations: 390.3 MB / 0.6653 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.97 kB / 0.8132 GB, free: 32.96 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2902, allocations: 140.4 MB / 0.9503 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002239/0.2925, allocations: 0.6676 MB / 0.9509 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2938, allocations: 1.06 MB / 0.952 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.2939, allocations: 4 kB / 0.952 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.294, allocations: 3.938 kB / 0.952 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.497e-05/0.2941, allocations: 3.938 kB / 0.952 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.2944, allocations: 47.83 kB / 0.952 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.74e-05/0.2945, allocations: 47.84 kB / 0.9521 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2946, allocations: 8 kB / 0.9521 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.913e-05/0.2947, allocations: 23.92 kB / 0.9521 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.2947, allocations: 19.92 kB / 0.9521 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.2948, allocations: 8 kB / 0.9521 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.2948, allocations: 27.91 kB / 0.9522 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.2949, allocations: 7.984 kB / 0.9522 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.042e-05/0.2949, allocations: 27.86 kB / 0.9522 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.2951, allocations: 51.84 kB / 0.9522 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2951, allocations: 4 kB / 0.9522 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2951, allocations: 0 / 0.9522 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.2951, allocations: 3.938 kB / 0.9523 GB, free: 6.824 MB / 0.7325 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.0006401/0.2957, allocations: 375.6 kB / 0.9526 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2958, allocations: 8.031 kB / 0.9526 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.2959, allocations: 4.938 kB / 0.9526 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.296, allocations: 168.2 kB / 0.9528 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.296, allocations: 8.375 kB / 0.9528 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.296, allocations: 384 / 0.9528 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.2963, allocations: 66.22 kB / 0.9529 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2963, allocations: 4.172 kB / 0.9529 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.2963, allocations: 3.938 kB / 0.9529 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2963, allocations: 11.94 kB / 0.9529 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.2965, allocations: 39.95 kB / 0.9529 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.297, allocations: 280.8 kB / 0.9532 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.2971, allocations: 62.48 kB / 0.9532 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2973, allocations: 32.97 kB / 0.9533 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2973, allocations: 0 / 0.9533 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.2975, allocations: 79.31 kB / 0.9533 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.2975, allocations: 0 / 0.9533 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000434/0.298, allocations: 125.5 kB / 0.9535 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.298, allocations: 51.41 kB / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.2981, allocations: 105.9 kB / 0.9536 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.2981, allocations: 29.7 kB / 0.9536 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.45e-05/0.2982, allocations: 92.11 kB / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.2982, allocations: 11.81 kB / 0.9537 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.506e-05/0.2982, allocations: 29.64 kB / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2984, allocations: 318.8 kB / 0.9541 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.2985, allocations: 27.97 kB / 0.9541 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.2986, allocations: 60.27 kB / 0.9542 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.2988, allocations: 92.14 kB / 0.9542 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2988, allocations: 256 / 0.9542 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002828/0.2991, allocations: 117.5 kB / 0.9544 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2991, allocations: 12 kB / 0.9544 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2991, allocations: 4 kB / 0.9544 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2992, allocations: 4 kB / 0.9544 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.2993, allocations: 19.97 kB / 0.9544 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2993, allocations: 0 / 0.9544 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.595e-05/0.2994, allocations: 12.12 kB / 0.9544 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.2994, allocations: 0 / 0.9544 GB, free: 4.355 MB / 0.7325 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.03e-05/0.2995, allocations: 129.6 kB / 0.9545 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.2995, allocations: 15.91 kB / 0.9545 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.2998, allocations: 102 kB / 0.9546 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.2998, allocations: 4 kB / 0.9546 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2998, allocations: 0 / 0.9546 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.2999, allocations: 0 / 0.9546 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.3003, allocations: 358.4 kB / 0.955 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3003, allocations: 4 kB / 0.955 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.569e-05/0.3004, allocations: 11.98 kB / 0.955 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3004, allocations: 0 / 0.955 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3004, allocations: 3.938 kB / 0.955 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3004, allocations: 4 kB / 0.955 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3004, allocations: 0 / 0.955 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.3007, allocations: 207.8 kB / 0.9552 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.3008, allocations: 81.09 kB / 0.9553 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.3008, allocations: 0 / 0.9553 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.3009, allocations: 11.98 kB / 0.9553 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.3009, allocations: 7.984 kB / 0.9553 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.301, allocations: 7.938 kB / 0.9553 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.763e-05/0.301, allocations: 79.28 kB / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.301, allocations: 0 / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002555/0.3013, allocations: 19.98 kB / 0.9554 GB, free: 3.223 MB / 0.7325 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.0001498/0.3014, allocations: 107.2 kB / 0.9555 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002743/0.3017, allocations: 71.88 kB / 0.9556 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3017, allocations: 0 / 0.9556 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3018, allocations: 39.98 kB / 0.9556 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3021, allocations: 12.23 kB / 0.9556 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003647/0.3025, allocations: 163.2 kB / 0.9558 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.3027, allocations: 0.6883 MB / 0.9565 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.157e-05/0.3028, allocations: 15.44 kB / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.3028, allocations: 0 / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of Templates: time 0.002371/0.3052, allocations: 0.9043 MB / 0.9574 GB, free: 1.16 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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