Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001742/0.001742, allocations: 102.2 kB / 16.27 MB, free: 6 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.002001/0.002001, allocations: 193.3 kB / 17.2 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.477/1.477, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.422/2.422, allocations: 437 MB / 0.711 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 68.91 kB / 0.8699 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2726, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002129/0.2748, allocations: 0.6872 MB / 1.019 GB, free: 9.977 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2761, allocations: 1.075 MB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.731e-05/0.2762, allocations: 7.938 kB / 1.02 GB, free: 8.879 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.047e-05/0.2763, allocations: 3.938 kB / 1.02 GB, free: 8.875 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.597e-05/0.2764, allocations: 3.938 kB / 1.02 GB, free: 8.871 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.2768, allocations: 47.83 kB / 1.02 GB, free: 8.824 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.2769, allocations: 67.89 kB / 1.02 GB, free: 8.758 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.277, allocations: 15.89 kB / 1.02 GB, free: 8.742 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.525e-05/0.2771, allocations: 31.91 kB / 1.02 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.796e-05/0.2772, allocations: 31.84 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.2772, allocations: 12 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.566e-05/0.2773, allocations: 23.92 kB / 1.02 GB, free: 8.645 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.902e-05/0.2774, allocations: 15.97 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.63e-05/0.2774, allocations: 27.86 kB / 1.02 GB, free: 8.602 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.2776, allocations: 75.75 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2776, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2776, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.2776, allocations: 0 / 1.02 GB, free: 8.527 MB / 0.795 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.0006226/0.2782, allocations: 379.7 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2783, allocations: 12.92 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.2783, allocations: 8.844 kB / 1.02 GB, free: 8.086 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2784, allocations: 168.3 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.2784, allocations: 8.375 kB / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.2785, allocations: 4.375 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.2787, allocations: 82.14 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2787, allocations: 192 / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.2787, allocations: 11.94 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2787, allocations: 4 kB / 1.021 GB, free: 7.77 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.279, allocations: 47.95 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/0.2795, allocations: 312.7 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.2797, allocations: 94.42 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2798, allocations: 40.83 kB / 1.021 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.2798, allocations: 0 / 1.021 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.2801, allocations: 99.28 kB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.2801, allocations: 0 / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0004944/0.2806, allocations: 173.7 kB / 1.021 GB, free: 6.938 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.2806, allocations: 55.41 kB / 1.021 GB, free: 6.871 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.212e-05/0.2807, allocations: 109.8 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.2807, allocations: 29.7 kB / 1.022 GB, free: 6.719 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.2808, allocations: 88.38 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.2808, allocations: 27.64 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.2809, allocations: 29.7 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.281, allocations: 326.8 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.2811, allocations: 35.97 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.2813, allocations: 64.22 kB / 1.022 GB, free: 6.129 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.2815, allocations: 98.48 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2815, allocations: 4 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003189/0.2819, allocations: 141.5 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2819, allocations: 7.984 kB / 1.022 GB, free: 5.867 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2819, allocations: 3.938 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.2819, allocations: 0 / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.2821, allocations: 28.05 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.2821, allocations: 4 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.824e-05/0.2822, allocations: 8.188 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.2822, allocations: 11.98 kB / 1.022 GB, free: 5.812 MB / 0.795 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 9.146e-05/0.2823, allocations: 128.1 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.2823, allocations: 7.906 kB / 1.023 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003601/0.2827, allocations: 150.3 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2827, allocations: 0 / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2827, allocations: 0 / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2827, allocations: 0 / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000546/0.2833, allocations: 410.3 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2833, allocations: 4 kB / 1.023 GB, free: 5.055 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.2833, allocations: 11.98 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2834, allocations: 8 kB / 1.023 GB, free: 5.035 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.2834, allocations: 3.984 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2834, allocations: 0 / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2834, allocations: 0 / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/0.2837, allocations: 231.4 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.601e-05/0.2838, allocations: 88.95 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.2838, allocations: 3.984 kB / 1.023 GB, free: 4.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.2839, allocations: 12 kB / 1.023 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.284, allocations: 7.984 kB / 1.023 GB, free: 4.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.284, allocations: 7.938 kB / 1.023 GB, free: 4.652 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.926e-05/0.2841, allocations: 83.27 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.513e-06/0.2841, allocations: 4 kB / 1.024 GB, free: 4.566 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002546/0.2843, allocations: 19.94 kB / 1.024 GB, free: 4.547 MB / 0.795 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.0001442/0.2845, allocations: 111.2 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003267/0.2848, allocations: 111.9 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2848, allocations: 0 / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.285, allocations: 47.91 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.2853, allocations: 13.11 kB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003776/0.2856, allocations: 188.6 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.2859, allocations: 0.6846 MB / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.642e-05/0.2859, allocations: 15.44 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.2859, allocations: 0 / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of Templates: time 0.002603/0.2885, allocations: 1.091 MB / 1.026 GB, free: 2.234 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches