Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01179/0.01179, allocations: 100.6 kB / 15.73 MB, free: 5.562 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.00207/0.00207, allocations: 198.3 kB / 16.67 MB, free: 5.504 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.311/2.311, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.91 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9859/0.9873, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002787/0.9902, allocations: 0.69 MB / 1.089 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001753/0.992, allocations: 1.062 MB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.187e-05/0.9921, allocations: 1.156 kB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.581e-05/0.9921, allocations: 3.938 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.948e-05/0.9922, allocations: 6.172 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.9927, allocations: 51.28 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.9928, allocations: 65.45 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.993, allocations: 19.08 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.9931, allocations: 26.59 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.9932, allocations: 28.62 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.9933, allocations: 7.281 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.9934, allocations: 24.14 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.9934, allocations: 21.8 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.546e-05/0.9935, allocations: 26.42 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.9937, allocations: 73.14 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.9937, allocations: 0.5156 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.567e-06/0.9938, allocations: 4 kB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.9938, allocations: 1.25 kB / 1.09 GB, free: 4.113 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008346/0.9946, allocations: 379.4 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.227e-05/0.9947, allocations: 9.594 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.9948, allocations: 8.828 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.9949, allocations: 166.1 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.9949, allocations: 7.672 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.995, allocations: 13.44 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.9953, allocations: 82.3 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.9953, allocations: 192 / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.9953, allocations: 9.75 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.9954, allocations: 1.188 kB / 1.091 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.9956, allocations: 57.02 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006579/0.9963, allocations: 315.9 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.9965, allocations: 85.34 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.9967, allocations: 45.25 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.9967, allocations: 1.344 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.997, allocations: 90.67 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.997, allocations: 3.938 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0006192/0.9976, allocations: 168.5 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.9977, allocations: 59.7 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.396e-05/0.9978, allocations: 109.3 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.9978, allocations: 32.88 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.559e-05/0.9978, allocations: 86.66 kB / 1.092 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.9979, allocations: 26.64 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.298e-05/0.9979, allocations: 34.52 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.601e-05/0.998, allocations: 315.4 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.9982, allocations: 40.27 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.9983, allocations: 63.64 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.9986, allocations: 110.4 kB / 1.092 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9986, allocations: 0 / 1.092 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003285/0.9989, allocations: 146 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.9989, allocations: 6.281 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.9989, allocations: 0.9375 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.999, allocations: 0.9062 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.9991, allocations: 20.33 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.9991, allocations: 1.438 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.689e-05/0.9992, allocations: 12.06 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.9992, allocations: 4.344 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001142/0.9994, allocations: 137.9 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.9994, allocations: 10.75 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.9998, allocations: 147.3 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.9998, allocations: 2.125 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.9998, allocations: 0 / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.9998, allocations: 0.7969 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/1, allocations: 420.4 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1, allocations: 1.328 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-05/1.001, allocations: 10.08 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/1.001, allocations: 1.953 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/1.001, allocations: 1.578 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/1.001, allocations: 0.9688 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.001, allocations: 0.625 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/1.001, allocations: 243.5 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/1.001, allocations: 83.41 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/1.001, allocations: 3 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/1.001, allocations: 12.27 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.929e-05/1.001, allocations: 6.266 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/1.001, allocations: 6.969 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.49e-05/1.001, allocations: 86.27 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.001, allocations: 3.938 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002854/1.002, allocations: 19.88 kB / 1.094 GB, free: 1.188 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002078/1.002, allocations: 106.1 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004281/1.002, allocations: 102.8 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.002, allocations: 0 / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001577/1.002, allocations: 47.47 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/1.003, allocations: 14.58 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/1.003, allocations: 158.4 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/1.003, allocations: 0.6899 MB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.035e-05/1.003, allocations: 6.812 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/1.003, allocations: 16.81 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of SimCode: time 7.12e-07/1.003, allocations: 0.8438 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of Templates: time 0.004595/1.008, allocations: 1.057 MB / 1.096 GB, free: 92 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches