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.001578/0.001578, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002039/0.002039, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.532/1.532, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.599/2.599, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 59.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7871/0.7885, allocations: 140.4 MB / 0.9491 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00218/0.7908, allocations: 0.7539 MB / 0.9498 GB, free: 8.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001382/0.7922, allocations: 1.064 MB / 0.9509 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.74e-05/0.7923, allocations: 0 / 0.9509 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.7923, allocations: 3.938 kB / 0.9509 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.385e-05/0.7924, allocations: 1.375 kB / 0.9509 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.7927, allocations: 41.52 kB / 0.9509 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.846e-05/0.7928, allocations: 72.66 kB / 0.951 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.7929, allocations: 12.11 kB / 0.951 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.22e-05/0.793, allocations: 26.92 kB / 0.951 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.506e-05/0.7931, allocations: 36.14 kB / 0.9511 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.7931, allocations: 6.875 kB / 0.9511 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.7932, allocations: 21.17 kB / 0.9511 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.138e-05/0.7932, allocations: 17.36 kB / 0.9511 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.533e-05/0.7933, allocations: 31.64 kB / 0.9511 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.7934, allocations: 63.69 kB / 0.9512 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.7934, allocations: 1.25 kB / 0.9512 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.883e-06/0.7934, allocations: 4 kB / 0.9512 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.7935, allocations: 0 / 0.9512 GB, free: 7.672 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006123/0.7941, allocations: 389.2 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.7941, allocations: 9.281 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.7942, allocations: 5.156 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.147e-05/0.7943, allocations: 169.7 kB / 0.9518 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.7943, allocations: 7.781 kB / 0.9518 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.364e-05/0.7944, allocations: 10.22 kB / 0.9518 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.7946, allocations: 82.14 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.7946, allocations: 192 / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.7946, allocations: 5.25 kB / 0.9519 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.7946, allocations: 1.438 kB / 0.9519 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.7949, allocations: 52.8 kB / 0.9519 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.7953, allocations: 317 kB / 0.9522 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.7955, allocations: 83.69 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.7957, allocations: 41.16 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.7957, allocations: 5.203 kB / 0.9523 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.7959, allocations: 95.38 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.7959, allocations: 4.969 kB / 0.9524 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004755/0.7964, allocations: 168.3 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.7964, allocations: 55.03 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.658e-05/0.7965, allocations: 108.9 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.7965, allocations: 37.14 kB / 0.9528 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.7966, allocations: 89.8 kB / 0.9529 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.7966, allocations: 22.62 kB / 0.9529 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.7967, allocations: 36.61 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.265e-05/0.7967, allocations: 317.5 kB / 0.9532 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.7969, allocations: 40.62 kB / 0.9533 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.797, allocations: 65.42 kB / 0.9533 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.7972, allocations: 103.2 kB / 0.9534 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7972, allocations: 0 / 0.9534 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003173/0.7975, allocations: 149.3 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.7976, allocations: 9.125 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.7976, allocations: 0 / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.7976, allocations: 0.625 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.7977, allocations: 19.61 kB / 0.9536 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.7978, allocations: 1.312 kB / 0.9536 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.051e-05/0.7978, allocations: 17.11 kB / 0.9536 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.7979, allocations: 7.906 kB / 0.9536 GB, free: 5.469 MB / 0.7169 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 8.709e-05/0.7979, allocations: 124.5 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.798, allocations: 10 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003512/0.7983, allocations: 145.1 kB / 0.9539 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.7983, allocations: 5.453 kB / 0.9539 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7983, allocations: 0 / 0.9539 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.7984, allocations: 3.984 kB / 0.9539 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.7988, allocations: 420.7 kB / 0.9543 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.7988, allocations: 0 / 0.9543 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.7989, allocations: 11.17 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.7989, allocations: 1.625 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.7989, allocations: 1.688 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.7989, allocations: 0 / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7989, allocations: 3.938 kB / 0.9543 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.7993, allocations: 241 kB / 0.9545 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.661e-05/0.7993, allocations: 83.45 kB / 0.9546 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.7993, allocations: 1.625 kB / 0.9546 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.7994, allocations: 17.52 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.7995, allocations: 6.516 kB / 0.9546 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.7995, allocations: 6.5 kB / 0.9547 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.764e-05/0.7995, allocations: 84.69 kB / 0.9547 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7995, allocations: 4 kB / 0.9547 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002495/0.7998, allocations: 18.75 kB / 0.9548 GB, free: 4.453 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: 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.0001665/0.8, allocations: 108.2 kB / 0.9549 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003623/0.8003, allocations: 98.28 kB / 0.955 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8003, allocations: 0 / 0.955 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.8005, allocations: 52.31 kB / 0.955 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.8008, allocations: 12.69 kB / 0.955 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000422/0.8012, allocations: 172.6 kB / 0.9552 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.8014, allocations: 0.6879 MB / 0.9559 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.502e-05/0.8015, allocations: 12.61 kB / 0.9559 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.8015, allocations: 15.56 kB / 0.9559 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of SimCode: time 9.52e-07/0.8015, allocations: 3.938 kB / 0.9559 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of Templates: time 0.004177/0.8057, allocations: 0.9731 MB / 0.9568 GB, free: 2.906 MB / 0.7169 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