Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001267/0.001267, allocations: 180.5 kB / 487.4 MB, free: 5.043 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009461/0.0009461, allocations: 96.64 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.636e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2674, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8909/1.158, allocations: 148.6 MB / 1.351 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/1.159, allocations: 69.53 kB / 1.351 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004086/1.163, allocations: 1.161 MB / 1.352 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.072e-06/1.163, allocations: 0 / 1.352 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.635e-06/1.163, allocations: 1.312 kB / 1.352 GB, free: 33.91 MB / 0.8386 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.0004591/1.163, allocations: 374.7 kB / 1.353 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/1.163, allocations: 15.47 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.631e-05/1.163, allocations: 4.641 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.843e-05/1.163, allocations: 177.6 kB / 1.353 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/1.163, allocations: 4.422 kB / 1.353 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/1.164, allocations: 7.953 kB / 1.353 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.325e-05/1.164, allocations: 23.02 kB / 1.353 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/1.164, allocations: 64.03 kB / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/1.164, allocations: 4 kB / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/1.164, allocations: 8.531 kB / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/1.164, allocations: 0 / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/1.164, allocations: 307 kB / 1.353 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/1.164, allocations: 57.19 kB / 1.353 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.544e-05/1.165, allocations: 27.17 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/1.165, allocations: 5.297 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001186/1.165, allocations: 76.2 kB / 1.353 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.124e-06/1.165, allocations: 0 / 1.353 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002135/1.165, allocations: 105.2 kB / 1.354 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/1.165, allocations: 63.64 kB / 1.354 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.184e-05/1.165, allocations: 96.81 kB / 1.354 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/1.165, allocations: 37.73 kB / 1.354 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.732e-05/1.165, allocations: 85.61 kB / 1.354 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/1.165, allocations: 24.05 kB / 1.354 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/1.165, allocations: 0 / 1.354 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001093/1.165, allocations: 324.4 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.843e-05/1.165, allocations: 18 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.274e-05/1.165, allocations: 52.3 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/1.166, allocations: 39.78 kB / 1.354 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/1.166, allocations: 0 / 1.354 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000214/1.166, allocations: 114.4 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/1.166, allocations: 5.562 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/1.166, allocations: 2.625 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/1.166, allocations: 7.938 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/1.166, allocations: 19.55 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/1.166, allocations: 8.672 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.567e-05/1.166, allocations: 14.42 kB / 1.354 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/1.166, allocations: 3.938 kB / 1.354 GB, free: 32.24 MB / 0.8386 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 8.388e-05/1.166, allocations: 121.8 kB / 1.355 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001382/1.166, allocations: 106.3 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/1.166, allocations: 8.344 kB / 1.355 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/1.167, allocations: 111.8 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/1.167, allocations: 0.6094 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.167, allocations: 3.938 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/1.167, allocations: 4.453 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/1.167, allocations: 354.9 kB / 1.355 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/1.167, allocations: 0 / 1.355 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.127e-05/1.167, allocations: 18.75 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/1.167, allocations: 3.938 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/1.167, allocations: 1.312 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.167, allocations: 3.844 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.167, allocations: 0.6094 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/1.167, allocations: 204.5 kB / 1.355 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.43e-05/1.167, allocations: 81.67 kB / 1.355 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/1.167, allocations: 6.375 kB / 1.355 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/1.167, allocations: 15.75 kB / 1.355 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.049e-05/1.167, allocations: 6.469 kB / 1.355 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/1.167, allocations: 4.359 kB / 1.355 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.781e-05/1.167, allocations: 84.47 kB / 1.356 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.167, allocations: 0 / 1.356 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002437/1.168, allocations: 27.73 kB / 1.356 GB, free: 31.44 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.0004963/1.168, allocations: 0.7603 MB / 1.356 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00014/1.168, allocations: 65.47 kB / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/1.168, allocations: 0 / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.316e-05/1.168, allocations: 29.09 kB / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/1.169, allocations: 6.516 kB / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003741/1.169, allocations: 143.5 kB / 1.357 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/1.169, allocations: 0.6892 MB / 1.357 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.658e-05/1.169, allocations: 9.844 kB / 1.357 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/1.169, allocations: 20.97 kB / 1.357 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.169, allocations: 0 / 1.357 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/1.192, allocations: 1.433 MB / 1.359 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/1.192, allocations: 145.8 kB / 1.359 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.535/2.728, allocations: 2.25 kB / 1.359 GB, free: 29.65 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat