Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.000803/0.000803, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001033/0.001033, allocations: 168.7 kB / 15.95 MB, free: 204 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.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.589/2.589, allocations: 409.4 MB / 0.684 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 8 kB / 0.8378 GB, free: 6.531 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8258/0.8262, allocations: 146.8 MB / 0.9811 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001006/0.8273, allocations: 409 kB / 0.9815 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.8288, allocations: 1.053 MB / 0.9826 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.404e-05/0.8289, allocations: 0 / 0.9826 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.8289, allocations: 4 kB / 0.9826 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.293e-05/0.829, allocations: 11.92 kB / 0.9826 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.8293, allocations: 35.89 kB / 0.9826 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.8294, allocations: 59.84 kB / 0.9827 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.248e-05/0.8295, allocations: 8 kB / 0.9827 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.869e-05/0.8296, allocations: 23.92 kB / 0.9827 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.8297, allocations: 27.89 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.8297, allocations: 4 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.477e-05/0.8298, allocations: 19.98 kB / 0.9828 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.8298, allocations: 11.98 kB / 0.9828 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.449e-05/0.8299, allocations: 37.64 kB / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.83, allocations: 55.81 kB / 0.9829 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.83, allocations: 0 / 0.9829 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.493e-06/0.83, allocations: 0 / 0.9829 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.83, allocations: 0 / 0.9829 GB, free: 4.531 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006063/0.8307, allocations: 381.4 kB / 0.9832 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.8307, allocations: 8.031 kB / 0.9832 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.8308, allocations: 38.56 kB / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.173e-05/0.8308, allocations: 0 / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.8309, allocations: 174.9 kB / 0.9834 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.831, allocations: 4 kB / 0.9834 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.831, allocations: 8 kB / 0.9834 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.8312, allocations: 89.59 kB / 0.9835 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.8313, allocations: 0 / 0.9835 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.8313, allocations: 4 kB / 0.9835 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.8313, allocations: 0 / 0.9835 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.8315, allocations: 71.89 kB / 0.9836 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006468/0.8321, allocations: 312.7 kB / 0.9839 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.8324, allocations: 90.42 kB / 0.984 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.8325, allocations: 56.83 kB / 0.984 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.8325, allocations: 0 / 0.984 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.8328, allocations: 99.42 kB / 0.9841 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.8328, allocations: 4 kB / 0.9841 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.000491/0.8333, allocations: 189.5 kB / 0.9843 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.8334, allocations: 55.41 kB / 0.9844 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.057e-05/0.8335, allocations: 113.8 kB / 0.9845 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.8335, allocations: 29.7 kB / 0.9845 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.8335, allocations: 84.38 kB / 0.9846 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.8336, allocations: 27.64 kB / 0.9846 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.8336, allocations: 8 kB / 0.9846 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.8337, allocations: 318.8 kB / 0.9849 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.8339, allocations: 39.98 kB / 0.985 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.834, allocations: 71.66 kB / 0.985 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.8342, allocations: 47.98 kB / 0.9851 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.8342, allocations: 0 / 0.9851 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003347/0.8345, allocations: 153.5 kB / 0.9852 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.8345, allocations: 4 kB / 0.9852 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.8345, allocations: 4.062 kB / 0.9852 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.8346, allocations: 4 kB / 0.9852 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.8347, allocations: 24.17 kB / 0.9853 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.8347, allocations: 7.984 kB / 0.9853 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.159e-05/0.8348, allocations: 15.91 kB / 0.9853 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.8348, allocations: 4 kB / 0.9853 GB, free: 1.801 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001458/0.835, allocations: 125.8 kB / 0.9854 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.835, allocations: 11.95 kB / 0.9854 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.8354, allocations: 153.8 kB / 0.9856 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.8354, allocations: 4 kB / 0.9856 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.8354, allocations: 480 / 0.9856 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.8354, allocations: 0 / 0.9856 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.8359, allocations: 430.2 kB / 0.986 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.836, allocations: 0 / 0.986 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.594e-05/0.836, allocations: 15.98 kB / 0.986 GB, free: 1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.836, allocations: 4 kB / 0.986 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.8361, allocations: 4 kB / 0.986 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.8361, allocations: 0 / 0.986 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8361, allocations: 0 / 0.986 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004007/0.8365, allocations: 251.3 kB / 0.9862 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.8365, allocations: 77.11 kB / 0.9863 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.8366, allocations: 4 kB / 0.9863 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.86e-05/0.8367, allocations: 15.98 kB / 0.9863 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.8367, allocations: 3.984 kB / 0.9863 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.8367, allocations: 4 kB / 0.9863 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.307e-05/0.8368, allocations: 87.27 kB / 0.9864 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8368, allocations: 4 kB / 0.9864 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000251/0.837, allocations: 20 kB / 0.9864 GB, free: 0.5 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007742/0.8378, allocations: 0.7864 MB / 0.9872 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002895/0.8381, allocations: 111.8 kB / 0.9873 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.8381, allocations: 288 / 0.9873 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.8383, allocations: 56.03 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.8385, allocations: 8 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.8397, allocations: 0.5763 MB / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.8402, allocations: 0.6887 MB / 0.9886 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.8402, allocations: 8.422 kB / 0.9886 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.8403, allocations: 19.42 kB / 0.9886 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.8403, allocations: 0 / 0.9886 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.8569, allocations: 1.771 MB / 0.9904 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003314/0.8573, allocations: 212 kB / 0.9906 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.678, allocations: 0 / 0.9906 GB, free: 12.29 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat