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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001263, allocations: 106.8 kB / 16.41 MB, free: 6.5 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.001271/0.001271, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.16 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.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 63.91 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8832/0.8847, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001855/0.8866, allocations: 0.6648 MB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.8882, allocations: 1.065 MB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.558e-05/0.8882, allocations: 1.031 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.8883, allocations: 4.594 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.216e-05/0.8884, allocations: 5.609 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.8887, allocations: 38.17 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.8888, allocations: 51.66 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.889, allocations: 15.17 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.925e-05/0.889, allocations: 18.2 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.119e-05/0.8891, allocations: 28.95 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.8891, allocations: 4.812 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.364e-05/0.8892, allocations: 13.91 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.8893, allocations: 16.83 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.223e-05/0.8893, allocations: 20.14 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.8895, allocations: 67.5 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.8895, allocations: 0 / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8895, allocations: 0 / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.8895, allocations: 0 / 1.091 GB, free: 4.16 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.0006328/0.8902, allocations: 371.4 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.8902, allocations: 9.375 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/0.8903, allocations: 3.609 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.8904, allocations: 169.9 kB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.8904, allocations: 2.531 kB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.8904, allocations: 7.5 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.8906, allocations: 68.33 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.8907, allocations: 4.188 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.8907, allocations: 16.97 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.8907, allocations: 1.094 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.8909, allocations: 39.14 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.8914, allocations: 275 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.8915, allocations: 61.94 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.8917, allocations: 30.27 kB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.8917, allocations: 5.906 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.8919, allocations: 76.2 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.8919, allocations: 3.938 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005/0.8924, allocations: 130.7 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.8925, allocations: 53.3 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.414e-05/0.8926, allocations: 103.9 kB / 1.092 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.8926, allocations: 26.77 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.314e-05/0.8926, allocations: 90.58 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.8927, allocations: 20.91 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.8927, allocations: 27.17 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.765e-05/0.8928, allocations: 317.3 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.8929, allocations: 29.53 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.8931, allocations: 53.69 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.8933, allocations: 98 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8933, allocations: 0.7812 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002861/0.8936, allocations: 113.8 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.8936, allocations: 9.531 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.8936, allocations: 1.953 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.8936, allocations: 1.875 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.8938, allocations: 16.42 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.8938, allocations: 2.828 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.027e-05/0.8939, allocations: 15.14 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.8939, allocations: 4.094 kB / 1.093 GB, free: 2.238 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 7.067e-05/0.894, allocations: 123.1 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.894, allocations: 6.859 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002918/0.8943, allocations: 115 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.8943, allocations: 0.9062 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.8943, allocations: 1.641 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8943, allocations: 0 / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004095/0.8947, allocations: 364.9 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.8947, allocations: 4 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.404e-05/0.8948, allocations: 10.36 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.8948, allocations: 1.344 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.8948, allocations: 5.688 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.8948, allocations: 4.797 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.8948, allocations: 0.7188 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.8951, allocations: 205.8 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.8952, allocations: 80.36 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.8952, allocations: 5.484 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.667e-05/0.8953, allocations: 7.469 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.8953, allocations: 5.281 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.8954, allocations: 6.219 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.667e-05/0.8954, allocations: 87 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8954, allocations: 0 / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000253/0.8957, allocations: 14.84 kB / 1.094 GB, free: 1.359 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.0001596/0.8958, allocations: 110.2 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002936/0.8961, allocations: 65.94 kB / 1.094 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.8961, allocations: 5.156 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.8963, allocations: 35.17 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.8966, allocations: 10.52 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.8969, allocations: 168.8 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.897, allocations: 0.6827 MB / 1.095 GB, free: 388 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/0.8971, allocations: 11.41 kB / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.8971, allocations: 0 / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of Templates: time 0.003079/0.9002, allocations: 0.9137 MB / 1.096 GB, free: 300 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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