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.291/2.291, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001055/0.001055, allocations: 169.1 kB / 498.1 MB, free: 5.715 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.457/1.457, allocations: 223.2 MB / 0.7948 GB, free: 18.84 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.0009746/0.0009745, allocations: 100.1 kB / 0.9346 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003978, allocations: 12.94 kB / 1.084 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2975, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.4878, allocations: 149.3 MB / 1.369 GB, free: 3.938 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.4882, allocations: 75.95 kB / 1.369 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003846/0.492, allocations: 1.183 MB / 1.37 GB, free: 2.676 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.555e-06/0.4921, allocations: 0 / 1.37 GB, free: 2.676 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.445e-06/0.4921, allocations: 0 / 1.37 GB, free: 2.676 MB / 0.8698 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.0006125/0.4927, allocations: 383.2 kB / 1.37 GB, free: 2.254 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4928, allocations: 8.031 kB / 1.37 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.583e-05/0.4928, allocations: 42.56 kB / 1.37 GB, free: 2.195 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.4929, allocations: 7.906 kB / 1.37 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.493, allocations: 167 kB / 1.371 GB, free: 1.984 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.493, allocations: 8 kB / 1.371 GB, free: 1.977 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.4931, allocations: 4 kB / 1.371 GB, free: 1.973 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.4933, allocations: 85.58 kB / 1.371 GB, free: 1.883 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.4933, allocations: 4 kB / 1.371 GB, free: 1.879 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4934, allocations: 4 kB / 1.371 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.4934, allocations: 0 / 1.371 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.4936, allocations: 67.89 kB / 1.371 GB, free: 1.809 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000673/0.4943, allocations: 336.6 kB / 1.371 GB, free: 1.43 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.4945, allocations: 90.48 kB / 1.371 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.4945, allocations: 4 kB / 1.371 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/0.4948, allocations: 91.36 kB / 1.371 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.4948, allocations: 0 / 1.371 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0005495/0.4954, allocations: 189.6 kB / 1.371 GB, free: 1.035 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.4955, allocations: 59.36 kB / 1.371 GB, free: 0.9648 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.466e-05/0.4956, allocations: 101 kB / 1.372 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.4956, allocations: 29.7 kB / 1.372 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.4957, allocations: 84.38 kB / 1.372 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.4957, allocations: 35.64 kB / 1.372 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-06/0.4957, allocations: 384 / 1.372 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4958, allocations: 322.8 kB / 1.372 GB, free: 384 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.496, allocations: 43.97 kB / 1.372 GB, free: 340 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.4961, allocations: 66.55 kB / 1.372 GB, free: 264 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.4963, allocations: 47.92 kB / 1.372 GB, free: 216 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4963, allocations: 0 / 1.372 GB, free: 216 kB / 0.8698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003457/0.4967, allocations: 157.5 kB / 1.372 GB, free: 52 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4967, allocations: 4.625 kB / 1.372 GB, free: 48 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4967, allocations: 4 kB / 1.372 GB, free: 44 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.4967, allocations: 0 / 1.372 GB, free: 44 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4969, allocations: 27.91 kB / 1.372 GB, free: 16 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4969, allocations: 4 kB / 1.372 GB, free: 12 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.497, allocations: 16.2 kB / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.497, allocations: 8 kB / 1.372 GB, free: 15.98 MB / 0.8855 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.0001123/0.4971, allocations: 117.8 kB / 1.373 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.4972, allocations: 7.906 kB / 1.373 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000376/0.4975, allocations: 157.9 kB / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4976, allocations: 3.984 kB / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4976, allocations: 0 / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.4976, allocations: 0 / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005839/0.4982, allocations: 430.5 kB / 1.373 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.4982, allocations: 0 / 1.373 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.87e-05/0.4983, allocations: 15.98 kB / 1.373 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.4983, allocations: 7.938 kB / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.4983, allocations: 0 / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4983, allocations: 0 / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4983, allocations: 3.953 kB / 1.373 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.4987, allocations: 247.6 kB / 1.373 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/0.4988, allocations: 81.11 kB / 1.373 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.4988, allocations: 7.938 kB / 1.373 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.4989, allocations: 15.98 kB / 1.373 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.499, allocations: 15.92 kB / 1.373 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.499, allocations: 3.953 kB / 1.373 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.049e-05/0.4991, allocations: 87.27 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.7e-07/0.4991, allocations: 4 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002496/0.4993, allocations: 16 kB / 1.374 GB, free: 14.68 MB / 0.8855 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.0008409/0.5002, allocations: 0.7983 MB / 1.374 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003262/0.5005, allocations: 108 kB / 1.374 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5005, allocations: 0 / 1.374 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.5007, allocations: 55.91 kB / 1.374 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.5009, allocations: 16.27 kB / 1.375 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008341/0.5018, allocations: 0.6817 MB / 1.375 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.5021, allocations: 0.6965 MB / 1.376 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.488e-05/0.5021, allocations: 8.422 kB / 1.376 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.5022, allocations: 19.44 kB / 1.376 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of SimCode: time 6.21e-07/0.5022, allocations: 0 / 1.376 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.5171, allocations: 1.731 MB / 1.378 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.5174, allocations: 201 kB / 1.378 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/2.074, allocations: 3.938 kB / 1.378 GB, free: 10.34 MB / 0.8855 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