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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001507/0.001507, allocations: 100.6 kB / 16.36 MB, free: 6.441 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.001619/0.001619, allocations: 195.3 kB / 17.31 MB, free: 5.812 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 68.39 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3834, allocations: 151.6 MB / 1.019 GB, free: 9.812 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001963/0.3854, allocations: 0.686 MB / 1.019 GB, free: 9.125 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.3867, allocations: 1.079 MB / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.555e-05/0.3867, allocations: 0 / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.265e-05/0.3868, allocations: 3.938 kB / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.886e-05/0.3868, allocations: 3.938 kB / 1.021 GB, free: 8.023 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.3871, allocations: 55.83 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.3872, allocations: 63.89 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.3874, allocations: 11.91 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.653e-05/0.3874, allocations: 31.91 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.3875, allocations: 35.83 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.3876, allocations: 4 kB / 1.021 GB, free: 7.824 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.905e-05/0.3876, allocations: 23.94 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.3877, allocations: 15.97 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.288e-05/0.3877, allocations: 35.86 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.3879, allocations: 71.75 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3879, allocations: 0 / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3879, allocations: 0 / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3879, allocations: 0 / 1.021 GB, free: 7.68 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.000663/0.3886, allocations: 383.4 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3886, allocations: 12.92 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.3887, allocations: 12.83 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.3888, allocations: 168.3 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.3888, allocations: 8.312 kB / 1.021 GB, free: 7.02 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.3888, allocations: 12.31 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.3891, allocations: 78.2 kB / 1.022 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.3891, allocations: 192 / 1.022 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3891, allocations: 7.938 kB / 1.022 GB, free: 6.918 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3891, allocations: 0 / 1.022 GB, free: 6.918 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.3893, allocations: 59.89 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005074/0.3898, allocations: 308.8 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.39, allocations: 90.41 kB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.3902, allocations: 40.84 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.3902, allocations: 11.97 kB / 1.022 GB, free: 6.355 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.3904, allocations: 87.5 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.3904, allocations: 0 / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.000484/0.3909, allocations: 169.5 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.391, allocations: 55.41 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.958e-05/0.3911, allocations: 117.8 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3911, allocations: 25.7 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.3911, allocations: 92.36 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.3912, allocations: 23.66 kB / 1.023 GB, free: 5.742 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.3912, allocations: 33.7 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3913, allocations: 318.8 kB / 1.023 GB, free: 5.383 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.3915, allocations: 39.97 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.3916, allocations: 58.55 kB / 1.023 GB, free: 5.277 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.3918, allocations: 106.3 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3918, allocations: 4 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002906/0.3921, allocations: 149.5 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.3922, allocations: 4 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3922, allocations: 384 / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3922, allocations: 4 kB / 1.023 GB, free: 5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3923, allocations: 15.98 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3923, allocations: 4 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.92e-05/0.3924, allocations: 19.86 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.3924, allocations: 4.062 kB / 1.023 GB, free: 4.957 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 8.675e-05/0.3925, allocations: 125.7 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.3925, allocations: 7.906 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003351/0.3929, allocations: 145.9 kB / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3929, allocations: 0 / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3929, allocations: 0 / 1.024 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3929, allocations: 3.984 kB / 1.024 GB, free: 4.664 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004949/0.3934, allocations: 414.3 kB / 1.024 GB, free: 4.203 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3934, allocations: 4 kB / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-05/0.3935, allocations: 7.984 kB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3935, allocations: 4 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.3935, allocations: 0 / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3935, allocations: 0 / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3935, allocations: 4.234 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.3938, allocations: 239.4 kB / 1.024 GB, free: 3.934 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3939, allocations: 88.94 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.394, allocations: 11.94 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3941, allocations: 11.98 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.3941, allocations: 4 kB / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.3941, allocations: 7.922 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.473e-05/0.3942, allocations: 95.22 kB / 1.024 GB, free: 3.699 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3942, allocations: 288 / 1.024 GB, free: 3.699 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002374/0.3944, allocations: 12 kB / 1.024 GB, free: 3.688 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.0001551/0.3946, allocations: 111.2 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002799/0.3949, allocations: 99.81 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3949, allocations: 0 / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.395, allocations: 52.03 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.3953, allocations: 10.41 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003456/0.3957, allocations: 163.3 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.3959, allocations: 0.6846 MB / 1.025 GB, free: 2.516 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.396, allocations: 8.422 kB / 1.026 GB, free: 2.508 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.15e-05/0.396, allocations: 19.44 kB / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.396, allocations: 0 / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of Templates: time 0.003603/0.3996, allocations: 1.023 MB / 1.027 GB, free: 1.473 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 -s gbode -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