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.001406/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001701/0.001702, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.45/2.45, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 63.91 kB / 0.8119 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8851/0.8866, allocations: 140.4 MB / 0.9489 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.003174/0.8898, allocations: 0.734 MB / 0.9496 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001831/0.8917, allocations: 1.06 MB / 0.9507 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.49e-05/0.8918, allocations: 1 kB / 0.9507 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.852e-05/0.8919, allocations: 3.938 kB / 0.9507 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.613e-05/0.892, allocations: 5.141 kB / 0.9507 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.8924, allocations: 37.91 kB / 0.9507 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.8925, allocations: 50.88 kB / 0.9508 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.8926, allocations: 9.594 kB / 0.9508 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.331e-05/0.8927, allocations: 22.95 kB / 0.9508 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.574e-05/0.8928, allocations: 22.72 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.8928, allocations: 2.844 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.8929, allocations: 16.83 kB / 0.9508 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.15e-05/0.8929, allocations: 5.078 kB / 0.9508 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.893, allocations: 26.58 kB / 0.9509 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.8931, allocations: 52.88 kB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.8931, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8931, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.8932, allocations: 1.406 kB / 0.9509 GB, free: 7.609 MB / 0.7169 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.0006113/0.8938, allocations: 370.3 kB / 0.9513 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.8938, allocations: 9.25 kB / 0.9513 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.8939, allocations: 7.625 kB / 0.9513 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.201e-05/0.894, allocations: 166.9 kB / 0.9514 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.894, allocations: 1.5 kB / 0.9514 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.894, allocations: 6.969 kB / 0.9515 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.8943, allocations: 65.84 kB / 0.9515 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.8943, allocations: 8.125 kB / 0.9515 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.8943, allocations: 3.938 kB / 0.9515 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.8943, allocations: 1.281 kB / 0.9515 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.8945, allocations: 47.39 kB / 0.9516 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.895, allocations: 280 kB / 0.9518 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.8952, allocations: 65.8 kB / 0.9519 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.807e-05/0.8953, allocations: 32.08 kB / 0.9519 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.8953, allocations: 5.375 kB / 0.9519 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.8955, allocations: 69.25 kB / 0.952 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.8955, allocations: 4 kB / 0.952 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000442/0.896, allocations: 129.5 kB / 0.9521 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.896, allocations: 52.56 kB / 0.9522 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.115e-05/0.8961, allocations: 109.3 kB / 0.9523 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.8962, allocations: 27.02 kB / 0.9523 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.8962, allocations: 89.39 kB / 0.9524 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.8962, allocations: 19.69 kB / 0.9524 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.8963, allocations: 28.02 kB / 0.9524 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.123e-05/0.8963, allocations: 316.2 kB / 0.9527 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.8965, allocations: 26.44 kB / 0.9528 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.8966, allocations: 59.36 kB / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.8968, allocations: 102.6 kB / 0.9529 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.8968, allocations: 0 / 0.9529 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002691/0.8971, allocations: 117.5 kB / 0.953 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.8971, allocations: 5.688 kB / 0.953 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.8971, allocations: 1.531 kB / 0.953 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.8971, allocations: 1.781 kB / 0.953 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.8973, allocations: 20.98 kB / 0.9531 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.8973, allocations: 1.094 kB / 0.9531 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.8974, allocations: 13.45 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.8974, allocations: 3.75 kB / 0.9531 GB, free: 5.516 MB / 0.7169 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.033e-05/0.8975, allocations: 123.9 kB / 0.9532 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.8975, allocations: 6.781 kB / 0.9532 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.8978, allocations: 109.5 kB / 0.9533 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.8978, allocations: 1.375 kB / 0.9533 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.8978, allocations: 1 kB / 0.9533 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.8978, allocations: 0 / 0.9533 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003948/0.8982, allocations: 367.4 kB / 0.9537 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.8982, allocations: 0 / 0.9537 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.701e-05/0.8983, allocations: 12.31 kB / 0.9537 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.8983, allocations: 192 / 0.9537 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.8983, allocations: 9.422 kB / 0.9537 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.8983, allocations: 3.938 kB / 0.9537 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.8983, allocations: 1.875 kB / 0.9537 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.8986, allocations: 198.1 kB / 0.9539 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.343e-05/0.8987, allocations: 87.41 kB / 0.954 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.8987, allocations: 1.281 kB / 0.954 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.8988, allocations: 8.109 kB / 0.954 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.057e-05/0.8988, allocations: 3.781 kB / 0.954 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.8989, allocations: 9.219 kB / 0.954 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.305e-05/0.8989, allocations: 92.11 kB / 0.9541 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8989, allocations: 1.219 kB / 0.9541 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002621/0.8992, allocations: 10.69 kB / 0.9541 GB, free: 4.566 MB / 0.7169 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.000165/0.8993, allocations: 110.2 kB / 0.9542 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002719/0.8996, allocations: 77.98 kB / 0.9543 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8996, allocations: 0 / 0.9543 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.8998, allocations: 32.2 kB / 0.9543 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.9, allocations: 8.359 kB / 0.9543 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.9004, allocations: 147 kB / 0.9544 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.9006, allocations: 0.6859 MB / 0.9551 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.712e-05/0.9006, allocations: 8.219 kB / 0.9551 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.9006, allocations: 10.12 kB / 0.9551 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9006, allocations: 3.938 kB / 0.9551 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of Templates: time 0.00365/0.9043, allocations: 0.7496 MB / 0.9559 GB, free: 3.172 MB / 0.7169 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/jenkins/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