Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_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_10_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.01018/0.01018, allocations: 96.64 kB / 15.73 MB, free: 6.055 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.001705/0.001705, allocations: 194.7 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.566/1.566, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.89/2.89, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001372, allocations: 63.89 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3834, allocations: 151.6 MB / 1.167 GB, free: 6.844 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002258/0.3857, allocations: 0.6875 MB / 1.167 GB, free: 6.152 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3872, allocations: 1.07 MB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.317e-05/0.3872, allocations: 4 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.934e-05/0.3873, allocations: 7.922 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.528e-05/0.3874, allocations: 3.938 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003686/0.3877, allocations: 47.83 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.3879, allocations: 71.77 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.3881, allocations: 16 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.112e-05/0.3882, allocations: 27.91 kB / 1.168 GB, free: 4.891 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.069e-05/0.3882, allocations: 31.91 kB / 1.169 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.3883, allocations: 4 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.672e-05/0.3884, allocations: 19.98 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.3884, allocations: 23.91 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.773e-05/0.3884, allocations: 27.86 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.3886, allocations: 71.75 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3887, allocations: 0 / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.565e-06/0.3887, allocations: 4 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.341e-05/0.3887, allocations: 0 / 1.169 GB, free: 4.711 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008116/0.3895, allocations: 379.2 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.3896, allocations: 12.02 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.3896, allocations: 12.83 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.3898, allocations: 176.3 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.3898, allocations: 8.312 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.3899, allocations: 8.375 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.3901, allocations: 82.2 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3901, allocations: 192 / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.3901, allocations: 3.938 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3902, allocations: 4 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.3904, allocations: 55.89 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000572/0.391, allocations: 304.8 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.3912, allocations: 86.47 kB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.3914, allocations: 36.84 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.3914, allocations: 11.98 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.3916, allocations: 99.42 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3917, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.000511/0.3922, allocations: 173.5 kB / 1.17 GB, free: 3.113 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.3922, allocations: 55.41 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.322e-05/0.3923, allocations: 101.8 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.3923, allocations: 33.7 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.3924, allocations: 96.36 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.3924, allocations: 23.8 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.78e-05/0.3925, allocations: 33.81 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3926, allocations: 326.8 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3927, allocations: 31.98 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.3929, allocations: 70.52 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.3932, allocations: 102.4 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3932, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003234/0.3935, allocations: 137.6 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3936, allocations: 12 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.3937, allocations: 0 / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3937, allocations: 0 / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.3938, allocations: 27.92 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3938, allocations: 0 / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.983e-05/0.3939, allocations: 23.81 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.394, allocations: 4 kB / 1.171 GB, free: 1.98 MB / 0.92 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 9.937e-05/0.3941, allocations: 121.8 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3941, allocations: 11.95 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003686/0.3945, allocations: 142.3 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3945, allocations: 4 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3945, allocations: 96 / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3945, allocations: 3.938 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.3951, allocations: 410.4 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3952, allocations: 4 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.575e-05/0.3952, allocations: 12.19 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3952, allocations: 0 / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.3953, allocations: 11.98 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3953, allocations: 0 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3953, allocations: 0 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.3956, allocations: 239.3 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.3957, allocations: 92.98 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.3958, allocations: 0 / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.3959, allocations: 11.98 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.259e-05/0.3959, allocations: 4 kB / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.396, allocations: 11.92 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.396, allocations: 79.28 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.396, allocations: 0 / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002508/0.3963, allocations: 20 kB / 1.172 GB, free: 0.7188 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: 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.0002053/0.3965, allocations: 111.2 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.3968, allocations: 99.92 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3968, allocations: 0 / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.397, allocations: 51.91 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3973, allocations: 15.16 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004003/0.3977, allocations: 158.5 kB / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.3983, allocations: 0.6889 MB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.233e-05/0.3984, allocations: 12.36 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.687e-05/0.3984, allocations: 11.44 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.3984, allocations: 0 / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of Templates: time 0.004111/0.4025, allocations: 1.031 MB / 1.174 GB, free: 14.5 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches