Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_latest_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.001436/0.001435, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001865/0.001865, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.711/1.711, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.826/2.826, allocations: 409.2 MB / 0.6838 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002987, allocations: 8 kB / 0.8375 GB, free: 6.531 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8801/0.8804, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001371/0.8819, allocations: 389.2 kB / 0.9812 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002654/0.8846, allocations: 1.029 MB / 0.9822 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.8847, allocations: 4 kB / 0.9823 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.331e-05/0.8848, allocations: 0 / 0.9823 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.885, allocations: 7.922 kB / 0.9823 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.8855, allocations: 31.89 kB / 0.9823 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.8856, allocations: 23.97 kB / 0.9823 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.8858, allocations: 4 kB / 0.9823 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.8859, allocations: 19.92 kB / 0.9823 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.89e-05/0.8861, allocations: 19.91 kB / 0.9824 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.8861, allocations: 8 kB / 0.9824 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.8862, allocations: 15.98 kB / 0.9824 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.8863, allocations: 3.938 kB / 0.9824 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.24e-05/0.8864, allocations: 33.7 kB / 0.9824 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.8866, allocations: 35.91 kB / 0.9824 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8866, allocations: 0 / 0.9824 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.577e-06/0.8866, allocations: 0 / 0.9824 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.8866, allocations: 0 / 0.9824 GB, free: 4.664 MB / 0.7325 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.001127/0.8878, allocations: 357.5 kB / 0.9828 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.084e-05/0.8878, allocations: 12.03 kB / 0.9828 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.964e-05/0.8879, allocations: 38.55 kB / 0.9828 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/0.888, allocations: 7.906 kB / 0.9828 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.8883, allocations: 159.1 kB / 0.983 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.8883, allocations: 4 kB / 0.983 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.8884, allocations: 7.875 kB / 0.983 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003745/0.8888, allocations: 69.62 kB / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.8888, allocations: 0 / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.8888, allocations: 0 / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.8888, allocations: 7.938 kB / 0.9831 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.8892, allocations: 47.95 kB / 0.9831 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008378/0.8901, allocations: 280.9 kB / 0.9834 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.8903, allocations: 54.45 kB / 0.9834 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.8904, allocations: 4.078 kB / 0.9835 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003543/0.8908, allocations: 75.39 kB / 0.9835 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.214e-06/0.8908, allocations: 0 / 0.9835 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0007642/0.8916, allocations: 121.6 kB / 0.9836 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.8917, allocations: 55.39 kB / 0.9837 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.8918, allocations: 105.8 kB / 0.9838 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.8918, allocations: 29.7 kB / 0.9838 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.911e-05/0.8919, allocations: 95.97 kB / 0.9839 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.365e-05/0.892, allocations: 11.89 kB / 0.9839 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.892, allocations: 4 kB / 0.9839 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.8922, allocations: 314.8 kB / 0.9842 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.8924, allocations: 27.97 kB / 0.9843 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.8926, allocations: 59.41 kB / 0.9843 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.8928, allocations: 27.98 kB / 0.9843 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8928, allocations: 0 / 0.9843 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000449/0.8933, allocations: 117.4 kB / 0.9845 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.8933, allocations: 11.98 kB / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.8934, allocations: 0 / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.8934, allocations: 0 / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.8936, allocations: 20.11 kB / 0.9845 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.8936, allocations: 4.25 kB / 0.9845 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.8938, allocations: 8 kB / 0.9845 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.8938, allocations: 8 kB / 0.9845 GB, free: 2.324 MB / 0.7325 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.8939, allocations: 113.8 kB / 0.9846 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.894, allocations: 11.89 kB / 0.9846 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004709/0.8944, allocations: 105.5 kB / 0.9847 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.8945, allocations: 0 / 0.9847 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/0.8945, allocations: 3.984 kB / 0.9847 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.954e-06/0.8945, allocations: 7.922 kB / 0.9847 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.8953, allocations: 354.4 kB / 0.9851 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.8953, allocations: 0 / 0.9851 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.8955, allocations: 11.98 kB / 0.9851 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.8955, allocations: 4 kB / 0.9851 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.8955, allocations: 0 / 0.9851 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.8955, allocations: 3.938 kB / 0.9851 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8955, allocations: 4 kB / 0.9851 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.896, allocations: 187.5 kB / 0.9853 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.668e-05/0.8961, allocations: 81.02 kB / 0.9853 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.8962, allocations: 11.98 kB / 0.9854 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.8964, allocations: 7.938 kB / 0.9854 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.8964, allocations: 11.98 kB / 0.9854 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.8965, allocations: 0 / 0.9854 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.741e-05/0.8966, allocations: 79.28 kB / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of sort global known variables: time 7.11e-07/0.8966, allocations: 0 / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004536/0.897, allocations: 16 kB / 0.9855 GB, free: 1.223 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009436/0.898, allocations: 0.7204 MB / 0.9862 GB, free: 484 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000478/0.8985, allocations: 79.95 kB / 0.9863 GB, free: 404 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8985, allocations: 0 / 0.9863 GB, free: 404 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.8987, allocations: 31.97 kB / 0.9863 GB, free: 372 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.8991, allocations: 12.19 kB / 0.9863 GB, free: 360 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.9003, allocations: 0.7999 MB / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.9007, allocations: 0.6887 MB / 0.9877 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.301e-05/0.9007, allocations: 8 kB / 0.9878 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.886e-05/0.9008, allocations: 15.42 kB / 0.9878 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of SimCode: time 7.21e-07/0.9008, allocations: 4 kB / 0.9878 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.9207, allocations: 1.417 MB / 0.9892 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004057/0.9212, allocations: 190.4 kB / 0.9893 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.912/3.833, allocations: 0 / 0.9893 GB, free: 13.23 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat does not exist to compare? outputFormat=mat