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.001164/0.001164, allocations: 103.8 kB / 16.41 MB, free: 6.016 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.001214/0.001214, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.15 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.324/2.324, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001508, allocations: 63.91 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8226/0.8242, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001692/0.8259, allocations: 0.683 MB / 1.089 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.827, allocations: 1.066 MB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-05/0.8271, allocations: 0 / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.541e-05/0.8271, allocations: 6.172 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.796e-05/0.8272, allocations: 8.484 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.8275, allocations: 47.91 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.8276, allocations: 69.41 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.8277, allocations: 14.42 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.256e-05/0.8278, allocations: 31.23 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.404e-05/0.8278, allocations: 32.59 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.8279, allocations: 6.344 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.802e-05/0.8279, allocations: 20.14 kB / 1.091 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.828, allocations: 18.88 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.828, allocations: 25.98 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.8282, allocations: 76.95 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8282, allocations: 0 / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8282, allocations: 1.375 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.8282, allocations: 4 kB / 1.091 GB, free: 4.125 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.0005494/0.8288, allocations: 375.3 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.8288, allocations: 14.25 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.8288, allocations: 8.125 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.8289, allocations: 178.7 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.829, allocations: 3.391 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.829, allocations: 6.188 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.8292, allocations: 93.55 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.8292, allocations: 192 / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.8293, allocations: 5.891 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.8293, allocations: 1.125 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.8295, allocations: 54.23 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004498/0.8299, allocations: 315.6 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.8301, allocations: 80.59 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.8303, allocations: 45.45 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.8303, allocations: 1.062 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.8305, allocations: 95.23 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.8305, allocations: 0 / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004732/0.831, allocations: 171.8 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.831, allocations: 55.94 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.966e-05/0.8311, allocations: 104.6 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.8311, allocations: 33.12 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.891e-05/0.8311, allocations: 90.98 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.8312, allocations: 30.28 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.8312, allocations: 30.45 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.638e-05/0.8313, allocations: 320.5 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.8314, allocations: 35.44 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.8316, allocations: 60.91 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.8318, allocations: 111.6 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.8318, allocations: 256 / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003067/0.8321, allocations: 137.3 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.8322, allocations: 5.922 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.8322, allocations: 12.69 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.8322, allocations: 2.062 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.8323, allocations: 23.25 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.8323, allocations: 2.062 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.033e-05/0.8324, allocations: 7.406 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.8324, allocations: 8.344 kB / 1.093 GB, free: 2.125 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 6.835e-05/0.8325, allocations: 130.2 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.8325, allocations: 10.91 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.8328, allocations: 147.7 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.8329, allocations: 1.969 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.8329, allocations: 0 / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.8329, allocations: 1.547 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.8333, allocations: 411.5 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8333, allocations: 5.984 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.79e-05/0.8334, allocations: 9.953 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.8334, allocations: 0.6562 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.8334, allocations: 6.406 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.8334, allocations: 0.6875 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8334, allocations: 0.75 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.8338, allocations: 239 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.957e-05/0.8338, allocations: 83.89 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.8338, allocations: 2.109 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.8339, allocations: 8.969 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.834, allocations: 14.92 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.834, allocations: 6.812 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.628e-05/0.834, allocations: 86.05 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.81e-07/0.834, allocations: 0 / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002435/0.8343, allocations: 20.27 kB / 1.094 GB, free: 1.203 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.0001323/0.8344, allocations: 109.9 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003102/0.8347, allocations: 94.23 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.8347, allocations: 0 / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.8349, allocations: 56.17 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.8351, allocations: 10.81 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.8355, allocations: 189.2 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.8356, allocations: 0.6899 MB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.8356, allocations: 13.2 kB / 1.095 GB, free: 192 kB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.8356, allocations: 0 / 1.095 GB, free: 192 kB / 0.8575 GB Notification: Performance of Templates: time 0.002947/0.8386, allocations: 1.107 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/jenkins1/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