Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_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.004795/0.004795, allocations: 101.1 kB / 15.73 MB, free: 6.004 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.001373/0.001373, allocations: 187.2 kB / 16.67 MB, free: 5.922 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.214/2.214, allocations: 437.1 MB / 0.7106 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 63.91 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.575/0.5767, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001479/0.5782, allocations: 0.6678 MB / 1.167 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.5793, allocations: 1.057 MB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.595e-05/0.5794, allocations: 0 / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.949e-05/0.5794, allocations: 4 kB / 1.168 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.095e-05/0.5794, allocations: 7.875 kB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.5797, allocations: 39.89 kB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.73e-05/0.5797, allocations: 43.8 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 7.584e-05/0.5798, allocations: 15.98 kB / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.025e-05/0.5799, allocations: 11.94 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.765e-05/0.5799, allocations: 23.91 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.58, allocations: 8 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.6e-05/0.58, allocations: 19.98 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.667e-05/0.58, allocations: 11.98 kB / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.5801, allocations: 15.88 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.5802, allocations: 54.52 kB / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.5802, allocations: 0 / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.022e-06/0.5802, allocations: 0 / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.5802, allocations: 0 / 1.168 GB, free: 1.762 MB / 0.8887 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.0004413/0.5806, allocations: 356.3 kB / 1.168 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.5807, allocations: 12.92 kB / 1.168 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.5807, allocations: 38.75 kB / 1.168 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.5807, allocations: 0.9375 kB / 1.168 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.5809, allocations: 180.2 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.5809, allocations: 384 / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.5809, allocations: 8.312 kB / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.5811, allocations: 58.23 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.5811, allocations: 3.938 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.5811, allocations: 0 / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.5811, allocations: 4 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.5813, allocations: 43.95 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003734/0.5816, allocations: 272.8 kB / 1.169 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.5818, allocations: 42.55 kB / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.245e-05/0.5819, allocations: 32.88 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.5819, allocations: 7.984 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.5821, allocations: 67.39 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.5821, allocations: 0 / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.0003376/0.5824, allocations: 109.5 kB / 1.169 GB, free: 376 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.5825, allocations: 55.39 kB / 1.169 GB, free: 308 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.376e-05/0.5825, allocations: 105.8 kB / 1.169 GB, free: 192 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.5826, allocations: 29.7 kB / 1.169 GB, free: 156 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.346e-05/0.5826, allocations: 88.12 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.5826, allocations: 15.84 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.5827, allocations: 21.72 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5828, allocations: 318.8 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.713e-05/0.5829, allocations: 23.98 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.583, allocations: 51.41 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.5832, allocations: 75.33 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5832, allocations: 0 / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002334/0.5834, allocations: 101.5 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.5835, allocations: 8 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.5835, allocations: 0 / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.5835, allocations: 4.125 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.627e-05/0.5836, allocations: 16.23 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.5836, allocations: 0 / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.5836, allocations: 15.98 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.5837, allocations: 4 kB / 1.17 GB, free: 15.38 MB / 0.9044 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.729e-05/0.5837, allocations: 121.8 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.5838, allocations: 7.891 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.584, allocations: 93.61 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.584, allocations: 4 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.584, allocations: 0 / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.584, allocations: 0 / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003712/0.5844, allocations: 342.4 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.5844, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.133e-05/0.5845, allocations: 8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.5845, allocations: 4 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.5845, allocations: 3.984 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.5845, allocations: 0 / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.5845, allocations: 7.938 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002372/0.5847, allocations: 175.5 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.5848, allocations: 81.06 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.5848, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.754e-05/0.5849, allocations: 19.92 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.5849, allocations: 3.938 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.066e-06/0.5849, allocations: 7.984 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.391e-05/0.585, allocations: 87.73 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.585, allocations: 0 / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002112/0.5852, allocations: 11.94 kB / 1.171 GB, free: 14.3 MB / 0.9044 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.0005219/0.5857, allocations: 0.7243 MB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.586, allocations: 55.89 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.586, allocations: 0 / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.5861, allocations: 36.16 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.5863, allocations: 13.59 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.5876, allocations: 1.369 MB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.5879, allocations: 0.6846 MB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.397e-05/0.5879, allocations: 4 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.077e-05/0.588, allocations: 15.44 kB / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of SimCode: time 2.01e-07/0.588, allocations: 0 / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.76/4.348, allocations: 1.706 MB / 1.176 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/14.8, allocations: 5.844 kB / 1.176 GB, free: 9.641 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches