Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007314/0.007314, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001295/0.001295, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.518/2.518, allocations: 390.3 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 64.12 kB / 0.9504 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2741, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002065/0.2762, allocations: 0.6694 MB / 1.088 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2776, allocations: 1.064 MB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.514e-05/0.2777, allocations: 0 / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.471e-05/0.2778, allocations: 7.938 kB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.027e-05/0.2779, allocations: 11.86 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.2782, allocations: 39.89 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.2783, allocations: 47.86 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.2784, allocations: 15.98 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.265e-05/0.2785, allocations: 19.92 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.231e-05/0.2786, allocations: 23.91 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.2786, allocations: 4 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.2787, allocations: 15.98 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.432e-05/0.2787, allocations: 11.98 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.909e-05/0.2788, allocations: 27.86 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.279, allocations: 60.56 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.279, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.312e-06/0.279, allocations: 4 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.279, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005747/0.2796, allocations: 362.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2796, allocations: 8.031 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.2797, allocations: 38.73 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.2797, allocations: 12.84 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2798, allocations: 168.3 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.2798, allocations: 384 / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.2799, allocations: 4.375 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.2801, allocations: 66.22 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2801, allocations: 3.938 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.2801, allocations: 3.938 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.2801, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.2803, allocations: 47.95 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.2807, allocations: 280.8 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.2809, allocations: 62.48 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.974e-05/0.281, allocations: 28.95 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.2811, allocations: 11.94 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.2813, allocations: 71.38 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.913e-06/0.2813, allocations: 0 / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004333/0.2817, allocations: 125.6 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.2818, allocations: 55.41 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.532e-05/0.2819, allocations: 109.9 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2819, allocations: 33.69 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.282, allocations: 80.14 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.282, allocations: 27.59 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.282, allocations: 29.7 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.72e-05/0.2821, allocations: 318.8 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.2823, allocations: 27.97 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.2824, allocations: 60.27 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.2826, allocations: 96.19 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.2826, allocations: 0 / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002822/0.2829, allocations: 117.5 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2829, allocations: 9.25 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.2829, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.283, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.2831, allocations: 20.11 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2831, allocations: 4.312 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.837e-05/0.2832, allocations: 7.906 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.2832, allocations: 11.98 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.253e-05/0.2833, allocations: 125.8 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.2833, allocations: 4 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.2836, allocations: 110 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2836, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2836, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2836, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.2841, allocations: 370.3 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2841, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-05/0.2842, allocations: 11.98 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2842, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.2842, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.2842, allocations: 4.172 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2842, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.2845, allocations: 199.3 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.2845, allocations: 89 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.2846, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.905e-05/0.2847, allocations: 12.25 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.777e-05/0.2847, allocations: 15.91 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2847, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.134e-05/0.2848, allocations: 91.27 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2848, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002486/0.285, allocations: 8 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005934/0.2856, allocations: 0.7319 MB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002641/0.2859, allocations: 75.88 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2859, allocations: 3.938 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.286, allocations: 32.23 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.2863, allocations: 15.92 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.2879, allocations: 1.412 MB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.2881, allocations: 0.6807 MB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.867e-05/0.2882, allocations: 7.984 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.2882, allocations: 15.44 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of SimCode: time 7.11e-07/0.2882, allocations: 4 kB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.3057, allocations: 1.847 MB / 1.097 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.96, allocations: 9.969 kB / 1.097 GB, free: 7.438 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches