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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.399/2.399, allocations: 390.3 MB / 402.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 176.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 221.3 MB / 0.7915 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000903/0.0009031, allocations: 87.95 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.361e-05/3.363e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3104, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.358, allocations: 150.1 MB / 1.365 GB, free: 3.969 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/1.358, allocations: 67.14 kB / 1.365 GB, free: 3.934 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003863/1.362, allocations: 1.178 MB / 1.367 GB, free: 2.879 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.483e-06/1.362, allocations: 0 / 1.367 GB, free: 2.879 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.798e-06/1.362, allocations: 4 kB / 1.367 GB, free: 2.875 MB / 0.823 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.0005437/1.362, allocations: 374.6 kB / 1.367 GB, free: 2.469 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/1.362, allocations: 8.031 kB / 1.367 GB, free: 2.461 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.008e-05/1.363, allocations: 37.81 kB / 1.367 GB, free: 2.418 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.255e-05/1.363, allocations: 4 kB / 1.367 GB, free: 2.414 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/1.363, allocations: 170.9 kB / 1.367 GB, free: 2.207 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/1.363, allocations: 15.42 kB / 1.367 GB, free: 2.195 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/1.363, allocations: 4.875 kB / 1.367 GB, free: 2.191 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/1.363, allocations: 74.02 kB / 1.367 GB, free: 2.129 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/1.363, allocations: 0 / 1.367 GB, free: 2.129 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/1.363, allocations: 4 kB / 1.367 GB, free: 2.125 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.363, allocations: 0 / 1.367 GB, free: 2.125 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.608e-05/1.363, allocations: 25.31 kB / 1.367 GB, free: 2.109 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006589/1.364, allocations: 333.7 kB / 1.368 GB, free: 1.758 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/1.364, allocations: 72.38 kB / 1.368 GB, free: 1.695 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/1.364, allocations: 31.17 kB / 1.368 GB, free: 1.672 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/1.364, allocations: 0 / 1.368 GB, free: 1.672 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/1.364, allocations: 80.69 kB / 1.368 GB, free: 1.594 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/1.364, allocations: 3.938 kB / 1.368 GB, free: 1.59 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0002817/1.364, allocations: 119.2 kB / 1.368 GB, free: 1.488 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/1.365, allocations: 59.39 kB / 1.368 GB, free: 1.418 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/1.365, allocations: 97.75 kB / 1.368 GB, free: 1.32 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/1.365, allocations: 29.52 kB / 1.368 GB, free: 1.289 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/1.365, allocations: 92.3 kB / 1.368 GB, free: 1.195 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/1.365, allocations: 23.41 kB / 1.368 GB, free: 1.176 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-06/1.365, allocations: 4 kB / 1.368 GB, free: 1.172 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001478/1.365, allocations: 322.6 kB / 1.369 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/1.365, allocations: 23 kB / 1.369 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.527e-05/1.365, allocations: 52.19 kB / 1.369 GB, free: 0.7891 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.609e-05/1.365, allocations: 27.11 kB / 1.369 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/1.365, allocations: 3.984 kB / 1.369 GB, free: 0.7695 MB / 0.823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002115/1.365, allocations: 117.5 kB / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/1.365, allocations: 8 kB / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.365, allocations: 3.5 kB / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/1.365, allocations: 0 / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/1.366, allocations: 35.78 kB / 1.369 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/1.366, allocations: 3.953 kB / 1.369 GB, free: 0.625 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.6e-05/1.366, allocations: 11.91 kB / 1.369 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/1.366, allocations: 8.062 kB / 1.369 GB, free: 0.6055 MB / 0.823 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 () * 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.0001016/1.366, allocations: 121.2 kB / 1.369 GB, free: 496 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/1.366, allocations: 7.688 kB / 1.369 GB, free: 492 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/1.366, allocations: 114.8 kB / 1.369 GB, free: 392 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/1.366, allocations: 4 kB / 1.369 GB, free: 388 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.366, allocations: 0 / 1.369 GB, free: 388 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/1.366, allocations: 7.938 kB / 1.369 GB, free: 380 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004372/1.367, allocations: 386.1 kB / 1.369 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.367, allocations: 0 / 1.369 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.056e-05/1.367, allocations: 15.19 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/1.367, allocations: 3.938 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/1.367, allocations: 7.984 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/1.367, allocations: 3.953 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/1.367, allocations: 0 / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/1.367, allocations: 204.9 kB / 1.37 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.59e-05/1.367, allocations: 88.33 kB / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/1.367, allocations: 0 / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/1.367, allocations: 11.98 kB / 1.37 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/1.367, allocations: 15 kB / 1.37 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/1.367, allocations: 4 kB / 1.37 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.967e-05/1.367, allocations: 86.7 kB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.367, allocations: 0 / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002458/1.368, allocations: 27.38 kB / 1.37 GB, free: 15.52 MB / 0.8386 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) * 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.0005749/1.368, allocations: 0.7711 MB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001821/1.368, allocations: 67.56 kB / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.368, allocations: 0 / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.32e-05/1.368, allocations: 40.17 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/1.369, allocations: 12.62 kB / 1.371 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004222/1.369, allocations: 141 kB / 1.371 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/1.369, allocations: 0.6848 MB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.174e-05/1.369, allocations: 8.422 kB / 1.372 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/1.37, allocations: 18.31 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.37, allocations: 0 / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01358/1.383, allocations: 1.768 MB / 1.373 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/1.383, allocations: 167 kB / 1.373 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/3.005, allocations: 64 / 1.373 GB, free: 11.93 MB / 0.8386 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) 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