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.001407/0.001407, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.00148/0.00148, allocations: 200.6 kB / 16.91 MB, free: 6.195 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.361/1.361, allocations: 222.9 MB / 240.6 MB, free: 13.74 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.213/2.213, allocations: 390.3 MB / 0.665 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 64.59 kB / 0.8127 GB, free: 32.39 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2654, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002163/0.2676, allocations: 0.75 MB / 0.9505 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.269, allocations: 1.066 MB / 0.9516 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.446e-05/0.269, allocations: 3.938 kB / 0.9516 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.2691, allocations: 4 kB / 0.9516 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.543e-05/0.2692, allocations: 3.938 kB / 0.9516 GB, free: 7.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.2695, allocations: 43.89 kB / 0.9516 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.146e-05/0.2696, allocations: 67.83 kB / 0.9517 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.983e-05/0.2697, allocations: 12 kB / 0.9517 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.124e-05/0.2697, allocations: 27.91 kB / 0.9517 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.27e-05/0.2698, allocations: 27.91 kB / 0.9517 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.2698, allocations: 8 kB / 0.9517 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.815e-05/0.2699, allocations: 23.97 kB / 0.9518 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.2699, allocations: 15.94 kB / 0.9518 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.452e-05/0.27, allocations: 31.86 kB / 0.9518 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.2701, allocations: 55.88 kB / 0.9519 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2701, allocations: 0 / 0.9519 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.306e-06/0.2701, allocations: 0 / 0.9519 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.2701, allocations: 3.938 kB / 0.9519 GB, free: 7.07 MB / 0.7325 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.0006374/0.2708, allocations: 379.6 kB / 0.9522 GB, free: 6.648 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2708, allocations: 8.031 kB / 0.9522 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.2709, allocations: 8.844 kB / 0.9522 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.271, allocations: 172.3 kB / 0.9524 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.271, allocations: 8.375 kB / 0.9524 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.2711, allocations: 8.359 kB / 0.9524 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.2713, allocations: 74.22 kB / 0.9525 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2713, allocations: 192 / 0.9525 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.2713, allocations: 15.88 kB / 0.9525 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.2713, allocations: 7.984 kB / 0.9525 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.2715, allocations: 59.88 kB / 0.9526 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/0.272, allocations: 304.8 kB / 0.9529 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.2723, allocations: 86.47 kB / 0.9529 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.2724, allocations: 40.83 kB / 0.953 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.2724, allocations: 8.188 kB / 0.953 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.2727, allocations: 95.25 kB / 0.9531 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.2727, allocations: 0 / 0.9531 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004723/0.2731, allocations: 169.5 kB / 0.9532 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.2732, allocations: 59.39 kB / 0.9533 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.187e-05/0.2733, allocations: 105.8 kB / 0.9534 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.2733, allocations: 37.69 kB / 0.9534 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.661e-05/0.2734, allocations: 84.38 kB / 0.9535 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.2734, allocations: 23.66 kB / 0.9535 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.2735, allocations: 33.7 kB / 0.9536 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.2736, allocations: 318.8 kB / 0.9539 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2737, allocations: 43.97 kB / 0.9539 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.2739, allocations: 62.48 kB / 0.954 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.2742, allocations: 98.47 kB / 0.9541 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2742, allocations: 0 / 0.9541 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003308/0.2745, allocations: 145.5 kB / 0.9542 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2745, allocations: 8 kB / 0.9542 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2745, allocations: 0 / 0.9542 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2746, allocations: 0 / 0.9542 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.2747, allocations: 27.92 kB / 0.9542 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2747, allocations: 0 / 0.9542 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.075e-05/0.2748, allocations: 15.92 kB / 0.9543 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.2748, allocations: 8.062 kB / 0.9543 GB, free: 4.355 MB / 0.7325 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 0.0001223/0.275, allocations: 121.8 kB / 0.9544 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.275, allocations: 11.89 kB / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.2753, allocations: 138.3 kB / 0.9545 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.2754, allocations: 4 kB / 0.9545 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2754, allocations: 3.984 kB / 0.9545 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2754, allocations: 96 / 0.9545 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000563/0.2759, allocations: 414.3 kB / 0.9549 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.276, allocations: 0 / 0.9549 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.276, allocations: 15.98 kB / 0.955 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.276, allocations: 0 / 0.955 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.2761, allocations: 8.188 kB / 0.955 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2761, allocations: 0 / 0.955 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2761, allocations: 4 kB / 0.955 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003297/0.2764, allocations: 239.3 kB / 0.9552 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.114e-05/0.2765, allocations: 89.02 kB / 0.9553 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.2765, allocations: 0 / 0.9553 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2766, allocations: 7.984 kB / 0.9553 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.2767, allocations: 7.984 kB / 0.9553 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.2767, allocations: 11.94 kB / 0.9553 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.744e-05/0.2767, allocations: 83.28 kB / 0.9554 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2767, allocations: 0 / 0.9554 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002537/0.277, allocations: 27.94 kB / 0.9554 GB, free: 3.086 MB / 0.7325 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.000198/0.2772, allocations: 107.8 kB / 0.9555 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003003/0.2775, allocations: 107.8 kB / 0.9556 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2775, allocations: 128 / 0.9556 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.2776, allocations: 47.97 kB / 0.9557 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.2779, allocations: 17.7 kB / 0.9557 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.2783, allocations: 199.8 kB / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.2785, allocations: 0.6962 MB / 0.9565 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.835e-05/0.2786, allocations: 19.42 kB / 0.9566 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.2786, allocations: 4 kB / 0.9566 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of Templates: time 0.002631/0.2812, allocations: 1.084 MB / 0.9576 GB, free: 0.7461 MB / 0.7325 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