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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00099/0.0009902, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 178.2 kB / 16.92 MB, free: 6.652 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.4/1.4, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 390.9 MB / 0.667 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003738, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7778/0.7782, allocations: 142.4 MB / 0.9557 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008543/0.7791, allocations: 419.9 kB / 0.9561 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001164/0.7803, allocations: 1.057 MB / 0.9571 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.7804, allocations: 1.031 kB / 0.9571 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.7804, allocations: 3.938 kB / 0.9571 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.547e-05/0.7805, allocations: 5.203 kB / 0.9572 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.7807, allocations: 41.69 kB / 0.9572 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.602e-05/0.7808, allocations: 65.73 kB / 0.9573 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.495e-05/0.7809, allocations: 13.31 kB / 0.9573 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.969e-05/0.781, allocations: 21.83 kB / 0.9573 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.882e-05/0.781, allocations: 32.67 kB / 0.9573 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.7811, allocations: 6.625 kB / 0.9573 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.7811, allocations: 14.17 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.7812, allocations: 14.48 kB / 0.9574 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.911e-05/0.7812, allocations: 61.14 kB / 0.9574 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.7813, allocations: 43.48 kB / 0.9575 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.7813, allocations: 1.125 kB / 0.9575 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7813, allocations: 0 / 0.9575 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.7814, allocations: 0 / 0.9575 GB, free: 6.387 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.0005117/0.7819, allocations: 382.8 kB / 0.9578 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.7819, allocations: 9.062 kB / 0.9578 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.782, allocations: 5.156 kB / 0.9578 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.532e-05/0.7821, allocations: 174.6 kB / 0.958 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.7821, allocations: 6.969 kB / 0.958 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.7821, allocations: 9.594 kB / 0.958 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.7823, allocations: 83.39 kB / 0.9581 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.7824, allocations: 5.656 kB / 0.9581 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.7824, allocations: 3.938 kB / 0.9581 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.7824, allocations: 0.9062 kB / 0.9581 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.7826, allocations: 66.86 kB / 0.9582 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.7831, allocations: 312.3 kB / 0.9585 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.7833, allocations: 86.77 kB / 0.9586 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.7834, allocations: 54.36 kB / 0.9586 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.7835, allocations: 1.406 kB / 0.9586 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.7837, allocations: 96.61 kB / 0.9587 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.7837, allocations: 1.5 kB / 0.9587 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004814/0.7842, allocations: 191.9 kB / 0.9589 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.7842, allocations: 53.5 kB / 0.9589 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.351e-05/0.7843, allocations: 106.1 kB / 0.959 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.7843, allocations: 36.14 kB / 0.9591 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.051e-05/0.7844, allocations: 85.72 kB / 0.9591 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.7844, allocations: 35.41 kB / 0.9592 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.7844, allocations: 18.84 kB / 0.9592 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.722e-05/0.7845, allocations: 320.4 kB / 0.9595 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.7846, allocations: 41.09 kB / 0.9595 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.7848, allocations: 70.64 kB / 0.9596 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.785, allocations: 120.7 kB / 0.9597 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.785, allocations: 0.9375 kB / 0.9597 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000335/0.7854, allocations: 151.3 kB / 0.9599 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.7854, allocations: 10.91 kB / 0.9599 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.7854, allocations: 1.094 kB / 0.9599 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.7854, allocations: 1.188 kB / 0.9599 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.7856, allocations: 29.94 kB / 0.9599 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.7856, allocations: 1.312 kB / 0.9599 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.226e-05/0.7857, allocations: 12.06 kB / 0.9599 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.7857, allocations: 7.844 kB / 0.9599 GB, free: 4.191 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.68e-05/0.7858, allocations: 135.1 kB / 0.9601 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.7858, allocations: 6.531 kB / 0.9601 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000365/0.7862, allocations: 154.2 kB / 0.9602 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.7862, allocations: 1.906 kB / 0.9602 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7862, allocations: 4 kB / 0.9602 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.7862, allocations: 0 / 0.9602 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.7867, allocations: 418.3 kB / 0.9606 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.7867, allocations: 256 / 0.9606 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.878e-05/0.7867, allocations: 17.61 kB / 0.9606 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.7868, allocations: 5.375 kB / 0.9606 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.7868, allocations: 1.375 kB / 0.9606 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7868, allocations: 0 / 0.9606 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.7868, allocations: 1.375 kB / 0.9606 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.7871, allocations: 257.6 kB / 0.9609 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.587e-05/0.7872, allocations: 79.86 kB / 0.961 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.7872, allocations: 5.312 kB / 0.961 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.7873, allocations: 12.23 kB / 0.961 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.7873, allocations: 14.67 kB / 0.961 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.7874, allocations: 6.688 kB / 0.961 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.301e-05/0.7874, allocations: 88.77 kB / 0.9611 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7874, allocations: 0 / 0.9611 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002479/0.7876, allocations: 23.12 kB / 0.9611 GB, free: 3.168 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.0001486/0.7878, allocations: 103.9 kB / 0.9612 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003152/0.7881, allocations: 107.2 kB / 0.9613 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7881, allocations: 0 / 0.9613 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.7883, allocations: 56.91 kB / 0.9614 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.7885, allocations: 16.09 kB / 0.9614 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.7889, allocations: 201.6 kB / 0.9616 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.7891, allocations: 0.6839 MB / 0.9622 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.136e-05/0.7891, allocations: 15.55 kB / 0.9623 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7891, allocations: 0 / 0.9623 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of Templates: time 0.002668/0.7918, allocations: 1.082 MB / 0.9633 GB, free: 1.555 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/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