Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.008124/0.008124, allocations: 103.4 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.00175/0.00175, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.16 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.428/2.428, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 68.05 kB / 0.9504 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.265, allocations: 140.4 MB / 1.087 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001674/0.2668, allocations: 0.6617 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2679, allocations: 1.056 MB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.302e-05/0.268, allocations: 3.938 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.673e-05/0.268, allocations: 3.938 kB / 1.089 GB, free: 388 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.626e-05/0.2681, allocations: 3.938 kB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.2684, allocations: 39.89 kB / 1.089 GB, free: 344 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.134e-05/0.2685, allocations: 47.86 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.265e-05/0.2686, allocations: 11.98 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.753e-05/0.2686, allocations: 11.94 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.534e-05/0.2687, allocations: 23.91 kB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.2687, allocations: 7.938 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.2688, allocations: 19.97 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.2688, allocations: 8 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.2688, allocations: 19.86 kB / 1.089 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.2689, allocations: 47.86 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.269, allocations: 4 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.283e-06/0.269, allocations: 0 / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.269, allocations: 0 / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004689/0.2694, allocations: 360 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2695, allocations: 8.031 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.2695, allocations: 38.75 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.2696, allocations: 4.844 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.2697, allocations: 177.1 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.2697, allocations: 384 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.2697, allocations: 12.38 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.2699, allocations: 54.23 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2699, allocations: 3.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.659e-06/0.2699, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.2699, allocations: 3.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.2701, allocations: 43.95 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.2705, allocations: 280.8 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.2707, allocations: 38.56 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.121e-05/0.2708, allocations: 28.92 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.2708, allocations: 4 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.271, allocations: 75.3 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.271, allocations: 0 / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003673/0.2714, allocations: 105.6 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.2714, allocations: 51.41 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.027e-05/0.2715, allocations: 105.8 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.2715, allocations: 29.7 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.2716, allocations: 88.14 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.2716, allocations: 19.73 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.216e-05/0.2716, allocations: 25.7 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.2717, allocations: 314.8 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.2718, allocations: 23.97 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.2719, allocations: 51.42 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.2721, allocations: 75.33 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2722, allocations: 4 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002495/0.2724, allocations: 101.4 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.2724, allocations: 10.34 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2724, allocations: 3.984 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2725, allocations: 4 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.838e-05/0.2726, allocations: 19.92 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.2726, allocations: 0 / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.425e-05/0.2726, allocations: 8 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.2727, allocations: 4.125 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.955e-05/0.2727, allocations: 125.7 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.2728, allocations: 4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.273, allocations: 85.88 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.273, allocations: 4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.273, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.273, allocations: 3.984 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003824/0.2734, allocations: 342.4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2734, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.938e-05/0.2735, allocations: 15.92 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2735, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.2735, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2735, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2735, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.2738, allocations: 183.4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.2738, allocations: 85.02 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2739, allocations: 11.92 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.554e-05/0.274, allocations: 4 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.274, allocations: 7.922 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.274, allocations: 4 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.2741, allocations: 87.28 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2741, allocations: 0 / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002335/0.2743, allocations: 8 kB / 1.092 GB, free: 12.68 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005149/0.2748, allocations: 0.7125 MB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.2751, allocations: 59.89 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2751, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.2752, allocations: 32.16 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.2754, allocations: 8.766 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.2768, allocations: 1.375 MB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.2771, allocations: 0.6846 MB / 1.095 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.982e-05/0.2771, allocations: 4 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.2771, allocations: 15.44 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of SimCode: time 3.61e-07/0.2771, allocations: 0 / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.3065, allocations: 1.731 MB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.819, allocations: 13.44 kB / 1.097 GB, free: 8.004 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches