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.00105/0.00105, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001447/0.001447, allocations: 172.7 kB / 15.95 MB, free: 208 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.462/1.462, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.6/2.6, allocations: 409.4 MB / 0.684 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004114, allocations: 12 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8124/0.8129, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001223/0.8142, allocations: 393.1 kB / 0.9815 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.8156, allocations: 1.029 MB / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.45e-05/0.8157, allocations: 0 / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.301e-05/0.8157, allocations: 7.984 kB / 0.9825 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.619e-05/0.8158, allocations: 7.922 kB / 0.9825 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.8161, allocations: 27.92 kB / 0.9826 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.8162, allocations: 39.86 kB / 0.9826 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.8163, allocations: 15.97 kB / 0.9826 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.553e-05/0.8164, allocations: 11.98 kB / 0.9826 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.078e-05/0.8165, allocations: 15.92 kB / 0.9826 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.8165, allocations: 0 / 0.9826 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.915e-05/0.8166, allocations: 15.98 kB / 0.9827 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.8166, allocations: 11.94 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.289e-05/0.8167, allocations: 33.7 kB / 0.9827 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.8168, allocations: 35.91 kB / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.8168, allocations: 0 / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.945e-06/0.8168, allocations: 0 / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8168, allocations: 0 / 0.9827 GB, free: 4.598 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.0006088/0.8174, allocations: 353.5 kB / 0.9831 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.8175, allocations: 16.03 kB / 0.9831 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.893e-05/0.8176, allocations: 30.56 kB / 0.9831 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.8176, allocations: 3.906 kB / 0.9831 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.8178, allocations: 171 kB / 0.9833 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.8178, allocations: 0 / 0.9833 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.8178, allocations: 8 kB / 0.9833 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.818, allocations: 61.62 kB / 0.9833 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.818, allocations: 4 kB / 0.9834 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.818, allocations: 0 / 0.9834 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.8181, allocations: 7.984 kB / 0.9834 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.8183, allocations: 47.95 kB / 0.9834 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004865/0.8188, allocations: 284.8 kB / 0.9837 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.819, allocations: 54.5 kB / 0.9837 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.8191, allocations: 36.92 kB / 0.9838 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.8191, allocations: 3.938 kB / 0.9838 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.8194, allocations: 71.39 kB / 0.9838 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.8194, allocations: 0 / 0.9838 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003793/0.8198, allocations: 129.6 kB / 0.984 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.8199, allocations: 51.41 kB / 0.984 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.301e-05/0.82, allocations: 113.8 kB / 0.9841 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.82, allocations: 29.7 kB / 0.9841 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/0.8201, allocations: 95.98 kB / 0.9842 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.8201, allocations: 7.906 kB / 0.9842 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-06/0.8201, allocations: 4 kB / 0.9842 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.8202, allocations: 318.8 kB / 0.9846 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.741e-05/0.8203, allocations: 19.98 kB / 0.9846 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.8204, allocations: 59.41 kB / 0.9846 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.81e-05/0.8205, allocations: 31.92 kB / 0.9847 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.8206, allocations: 0 / 0.9847 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000244/0.8208, allocations: 121.4 kB / 0.9848 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.8208, allocations: 4 kB / 0.9848 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.8208, allocations: 0 / 0.9848 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.8209, allocations: 4.125 kB / 0.9848 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.821, allocations: 19.98 kB / 0.9848 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.821, allocations: 0 / 0.9848 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.087e-05/0.8211, allocations: 8 kB / 0.9848 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.8211, allocations: 4 kB / 0.9848 GB, free: 2.227 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.0001607/0.8213, allocations: 117.8 kB / 0.9849 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.8213, allocations: 7.953 kB / 0.9849 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.8216, allocations: 109.5 kB / 0.985 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.8216, allocations: 0 / 0.985 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.8216, allocations: 0 / 0.985 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8216, allocations: 0 / 0.985 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006018/0.8222, allocations: 354.4 kB / 0.9854 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.8222, allocations: 0 / 0.9854 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/0.8223, allocations: 15.98 kB / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.8223, allocations: 0 / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.8223, allocations: 3.938 kB / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.8223, allocations: 4 kB / 0.9854 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8223, allocations: 0 / 0.9854 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.8226, allocations: 191.8 kB / 0.9856 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.8227, allocations: 93 kB / 0.9857 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.8227, allocations: 3.938 kB / 0.9857 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.8228, allocations: 8 kB / 0.9857 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.8228, allocations: 11.98 kB / 0.9857 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-06/0.8228, allocations: 0 / 0.9857 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.791e-05/0.8229, allocations: 83.28 kB / 0.9858 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8229, allocations: 0 / 0.9858 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002311/0.8231, allocations: 15.98 kB / 0.9858 GB, free: 1.121 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.0008006/0.8239, allocations: 0.7241 MB / 0.9865 GB, free: 376 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.8242, allocations: 71.94 kB / 0.9866 GB, free: 304 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.8242, allocations: 0 / 0.9866 GB, free: 304 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.8243, allocations: 40.17 kB / 0.9866 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.8246, allocations: 4.781 kB / 0.9866 GB, free: 260 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009841/0.8256, allocations: 0.4993 MB / 0.9871 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.826, allocations: 0.6815 MB / 0.9878 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.444e-05/0.826, allocations: 8 kB / 0.9878 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.449e-05/0.826, allocations: 11.44 kB / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of SimCode: time 2.214e-06/0.8261, allocations: 0 / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01267/0.8387, allocations: 1.444 MB / 0.9892 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.839, allocations: 195.5 kB / 0.9894 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.689, allocations: 3.938 kB / 0.9894 GB, free: 13.43 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