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.474/2.474, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001413/0.001413, allocations: 168.9 kB / 492.3 MB, free: 0.6172 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.676/1.676, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009695/0.0009696, allocations: 91.89 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.996e-05/4.051e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3147, allocations: 142.3 MB / 1.213 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9804/1.295, allocations: 149.3 MB / 1.358 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/1.295, allocations: 67.81 kB / 1.358 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003906/1.299, allocations: 1.174 MB / 1.359 GB, free: 34.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.333e-06/1.299, allocations: 0 / 1.359 GB, free: 34.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.885e-06/1.299, allocations: 3.531 kB / 1.359 GB, free: 34.68 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.0004583/1.3, allocations: 374.8 kB / 1.36 GB, free: 34.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/1.3, allocations: 9.078 kB / 1.36 GB, free: 34.32 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/1.3, allocations: 35.92 kB / 1.36 GB, free: 34.28 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/1.3, allocations: 3.844 kB / 1.36 GB, free: 34.28 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.126e-05/1.3, allocations: 178.8 kB / 1.36 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/1.3, allocations: 11.72 kB / 1.36 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.3, allocations: 3.844 kB / 1.36 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/1.3, allocations: 70.28 kB / 1.36 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/1.3, allocations: 0 / 1.36 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/1.3, allocations: 2.938 kB / 1.36 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/1.3, allocations: 3.812 kB / 1.36 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.551e-05/1.3, allocations: 30.12 kB / 1.36 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/1.301, allocations: 327.9 kB / 1.36 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/1.301, allocations: 72.23 kB / 1.361 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/1.301, allocations: 31.58 kB / 1.361 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/1.301, allocations: 0 / 1.361 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/1.301, allocations: 82.56 kB / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/1.301, allocations: 0 / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002136/1.301, allocations: 113.7 kB / 1.361 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/1.302, allocations: 62.91 kB / 1.361 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.683e-05/1.302, allocations: 94.05 kB / 1.361 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/1.302, allocations: 33.5 kB / 1.361 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/1.302, allocations: 84.91 kB / 1.361 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/1.302, allocations: 31.88 kB / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/1.302, allocations: 4.109 kB / 1.361 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.446e-05/1.302, allocations: 320.5 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.633e-05/1.302, allocations: 27.22 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.406e-05/1.302, allocations: 52.44 kB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.713e-05/1.302, allocations: 28.12 kB / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/1.302, allocations: 0 / 1.361 GB, free: 33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001631/1.302, allocations: 121.7 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/1.302, allocations: 9.219 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/1.302, allocations: 0 / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/1.302, allocations: 0 / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/1.302, allocations: 24.48 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/1.302, allocations: 3.938 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/1.302, allocations: 23.78 kB / 1.362 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/1.302, allocations: 11.81 kB / 1.362 GB, free: 32.93 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 7.613e-05/1.303, allocations: 118.1 kB / 1.362 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.125e-05/1.303, allocations: 3.906 kB / 1.362 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002119/1.303, allocations: 121.5 kB / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/1.303, allocations: 3.875 kB / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.303, allocations: 0 / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/1.303, allocations: 1.453 kB / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/1.303, allocations: 391.8 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/1.303, allocations: 0 / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-05/1.303, allocations: 15.02 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/1.303, allocations: 0 / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/1.303, allocations: 2.562 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/1.303, allocations: 0.8906 kB / 1.362 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.303, allocations: 7.891 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/1.303, allocations: 209 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/1.304, allocations: 82.02 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/1.304, allocations: 5.25 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/1.304, allocations: 14.45 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/1.304, allocations: 7 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/1.304, allocations: 9.281 kB / 1.363 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.384e-05/1.304, allocations: 83.25 kB / 1.363 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.304, allocations: 0 / 1.363 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002245/1.304, allocations: 31.33 kB / 1.363 GB, free: 32.14 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.0004496/1.304, allocations: 0.7561 MB / 1.363 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001515/1.305, allocations: 72.48 kB / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/1.305, allocations: 0 / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.927e-05/1.305, allocations: 39.12 kB / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/1.305, allocations: 16.33 kB / 1.364 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/1.305, allocations: 138.6 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/1.306, allocations: 0.6884 MB / 1.364 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.74e-05/1.306, allocations: 5.656 kB / 1.364 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.167e-05/1.306, allocations: 19.75 kB / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.306, allocations: 0 / 1.364 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/1.317, allocations: 1.763 MB / 1.366 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001338/1.317, allocations: 167.5 kB / 1.366 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/3.227, allocations: 0 / 1.366 GB, free: 30.21 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