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.001261/0.001261, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001538/0.001538, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.373/2.373, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003045, allocations: 11.98 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6944/0.6947, allocations: 142.3 MB / 0.9535 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008691/0.6956, allocations: 405.6 kB / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.6968, allocations: 1.045 MB / 0.9549 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.841e-05/0.6969, allocations: 5.094 kB / 0.9549 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.6969, allocations: 0 / 0.9549 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.032e-05/0.697, allocations: 5.328 kB / 0.9549 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.6972, allocations: 41.64 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.495e-05/0.6973, allocations: 36.7 kB / 0.955 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.855e-05/0.6974, allocations: 16.61 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.419e-05/0.6975, allocations: 21.08 kB / 0.955 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.995e-05/0.6976, allocations: 32.77 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.6976, allocations: 3.875 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.848e-05/0.6977, allocations: 16.48 kB / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.6977, allocations: 10.52 kB / 0.9551 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.6977, allocations: 33.92 kB / 0.9551 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.93e-05/0.6978, allocations: 53.25 kB / 0.9552 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6978, allocations: 3.938 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6978, allocations: 0 / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.6979, allocations: 4 kB / 0.9552 GB, free: 6.789 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.000528/0.6984, allocations: 371.2 kB / 0.9555 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.6984, allocations: 9.625 kB / 0.9556 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.308e-05/0.6985, allocations: 15.91 kB / 0.9556 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.075e-05/0.6986, allocations: 164.4 kB / 0.9557 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.6986, allocations: 11.38 kB / 0.9557 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.6986, allocations: 5.094 kB / 0.9557 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.6988, allocations: 90.17 kB / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.6989, allocations: 0 / 0.9558 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.6989, allocations: 5.469 kB / 0.9558 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.6989, allocations: 1.5 kB / 0.9558 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.6991, allocations: 69.94 kB / 0.9559 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.6996, allocations: 314.8 kB / 0.9562 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.6998, allocations: 87.95 kB / 0.9563 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.6998, allocations: 1.375 kB / 0.9563 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.7001, allocations: 100.1 kB / 0.9564 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.7001, allocations: 0 / 0.9564 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004851/0.7006, allocations: 190.4 kB / 0.9566 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.7006, allocations: 62.67 kB / 0.9566 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.326e-05/0.7007, allocations: 105.5 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.7007, allocations: 32.48 kB / 0.9568 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.7007, allocations: 89.73 kB / 0.9568 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.7008, allocations: 22.94 kB / 0.9569 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-06/0.7008, allocations: 5.125 kB / 0.9569 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.557e-05/0.7008, allocations: 316.6 kB / 0.9572 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.701, allocations: 50.34 kB / 0.9572 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.7011, allocations: 60.64 kB / 0.9573 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.7012, allocations: 55.17 kB / 0.9573 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7013, allocations: 1.234 kB / 0.9573 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003134/0.7016, allocations: 150.1 kB / 0.9575 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.7016, allocations: 10.27 kB / 0.9575 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.7016, allocations: 5.656 kB / 0.9575 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.7016, allocations: 5.078 kB / 0.9575 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.7018, allocations: 21.58 kB / 0.9575 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.7018, allocations: 1.125 kB / 0.9575 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.468e-05/0.7019, allocations: 19.56 kB / 0.9575 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.7019, allocations: 8.422 kB / 0.9575 GB, free: 4.684 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 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.876e-05/0.702, allocations: 127.6 kB / 0.9577 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.702, allocations: 6.281 kB / 0.9577 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.7024, allocations: 150.3 kB / 0.9578 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.7024, allocations: 1.281 kB / 0.9578 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.7024, allocations: 4.203 kB / 0.9578 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7024, allocations: 4 kB / 0.9578 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004733/0.7029, allocations: 425 kB / 0.9582 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7029, allocations: 0 / 0.9582 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.216e-05/0.703, allocations: 18.33 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.703, allocations: 5 kB / 0.9583 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.703, allocations: 13.19 kB / 0.9583 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.703, allocations: 0 / 0.9583 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.703, allocations: 1.156 kB / 0.9583 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.7033, allocations: 238.9 kB / 0.9585 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.7034, allocations: 82.92 kB / 0.9586 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.7034, allocations: 7.984 kB / 0.9586 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.7035, allocations: 13.95 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.7036, allocations: 5.766 kB / 0.9586 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.7036, allocations: 3.281 kB / 0.9586 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.321e-05/0.7036, allocations: 96.2 kB / 0.9587 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7036, allocations: 288 / 0.9587 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002474/0.7039, allocations: 18.47 kB / 0.9587 GB, free: 3.668 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001535/0.704, allocations: 103.4 kB / 0.9588 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003101/0.7043, allocations: 115.1 kB / 0.9589 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.7044, allocations: 0 / 0.9589 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.7045, allocations: 49.02 kB / 0.959 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.7047, allocations: 13.44 kB / 0.959 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000359/0.7051, allocations: 165.4 kB / 0.9591 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.7052, allocations: 0.693 MB / 0.9598 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.626e-05/0.7053, allocations: 8.453 kB / 0.9598 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.7053, allocations: 16.48 kB / 0.9598 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7053, allocations: 3.938 kB / 0.9598 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of Templates: time 0.003211/0.7085, allocations: 0.8801 MB / 0.9607 GB, free: 2.184 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches