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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 100 kB / 15.05 MB, free: 1.105 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.001699/0.001699, allocations: 177.3 kB / 15.95 MB, free: 216 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.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.538/2.538, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 11.94 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7648/0.7651, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0007973/0.766, allocations: 405.7 kB / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.7671, allocations: 1.053 MB / 0.955 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.7672, allocations: 0 / 0.955 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.7672, allocations: 5.156 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.661e-05/0.7673, allocations: 5.359 kB / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.7675, allocations: 41.05 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.584e-05/0.7676, allocations: 35.89 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.502e-05/0.7677, allocations: 12.75 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.092e-05/0.7678, allocations: 25.91 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.194e-05/0.7679, allocations: 25.16 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.7679, allocations: 3.062 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.7679, allocations: 16.3 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.768, allocations: 14.39 kB / 0.9552 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.009e-05/0.768, allocations: 39.52 kB / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.839e-05/0.7681, allocations: 46.91 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.7681, allocations: 1.469 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7681, allocations: 0 / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.7681, allocations: 0 / 0.9553 GB, free: 6.73 MB / 0.7169 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.0005191/0.7687, allocations: 378.8 kB / 0.9556 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.7687, allocations: 9.562 kB / 0.9556 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.7688, allocations: 41.42 kB / 0.9557 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.7688, allocations: 7.328 kB / 0.9557 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.555e-05/0.7689, allocations: 168.8 kB / 0.9559 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.7689, allocations: 11.67 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.7689, allocations: 4.031 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.7691, allocations: 82.75 kB / 0.9559 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.7691, allocations: 0 / 0.9559 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.7692, allocations: 1.625 kB / 0.9559 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.7692, allocations: 5.391 kB / 0.956 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.7694, allocations: 73.97 kB / 0.956 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004197/0.7698, allocations: 311.9 kB / 0.9563 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.77, allocations: 91.08 kB / 0.9564 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.77, allocations: 1.156 kB / 0.9564 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.7703, allocations: 103.6 kB / 0.9565 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.7703, allocations: 0 / 0.9565 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004698/0.7707, allocations: 191.4 kB / 0.9567 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.7708, allocations: 58.12 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.812e-05/0.7708, allocations: 108.9 kB / 0.9568 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.7709, allocations: 32.48 kB / 0.9569 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.7709, allocations: 86.75 kB / 0.957 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.7709, allocations: 27.55 kB / 0.957 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-06/0.7709, allocations: 0 / 0.957 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.771, allocations: 317.5 kB / 0.9573 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.7711, allocations: 44.44 kB / 0.9573 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.7712, allocations: 71.66 kB / 0.9574 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.7714, allocations: 55.38 kB / 0.9575 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.7714, allocations: 1.188 kB / 0.9575 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002997/0.7717, allocations: 153.6 kB / 0.9576 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.7717, allocations: 5.25 kB / 0.9576 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.7717, allocations: 5.625 kB / 0.9576 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.7718, allocations: 5.359 kB / 0.9576 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.7719, allocations: 20.92 kB / 0.9576 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.7719, allocations: 1.406 kB / 0.9576 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.377e-05/0.772, allocations: 20.52 kB / 0.9577 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.772, allocations: 3.562 kB / 0.9577 GB, free: 4.574 MB / 0.7169 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 7.081e-05/0.7721, allocations: 123.3 kB / 0.9578 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.7721, allocations: 7.297 kB / 0.9578 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.7724, allocations: 149.2 kB / 0.9579 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.7725, allocations: 5.047 kB / 0.9579 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.7725, allocations: 3.984 kB / 0.9579 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.7725, allocations: 4 kB / 0.9579 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.7729, allocations: 421.2 kB / 0.9583 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.773, allocations: 3.938 kB / 0.9583 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.767e-05/0.773, allocations: 18.8 kB / 0.9584 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.773, allocations: 5.734 kB / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.7731, allocations: 0 / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.7731, allocations: 1.781 kB / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.7731, allocations: 0 / 0.9584 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.7734, allocations: 250 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.007e-05/0.7734, allocations: 82.8 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.7734, allocations: 5.016 kB / 0.9587 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.7736, allocations: 16.36 kB / 0.9587 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.7736, allocations: 7.047 kB / 0.9587 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.7736, allocations: 3.531 kB / 0.9587 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.584e-05/0.7736, allocations: 91.44 kB / 0.9588 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7737, allocations: 0 / 0.9588 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002534/0.7739, allocations: 20.11 kB / 0.9588 GB, free: 3.562 MB / 0.7169 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.0005419/0.7745, allocations: 0.7935 MB / 0.9596 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003035/0.7748, allocations: 103.3 kB / 0.9597 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.7748, allocations: 4.125 kB / 0.9597 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.7749, allocations: 52 kB / 0.9598 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001923/0.7751, allocations: 9.953 kB / 0.9598 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005759/0.7757, allocations: 0.6805 MB / 0.9604 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.7758, allocations: 0.6933 MB / 0.9611 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.625e-05/0.7759, allocations: 9.531 kB / 0.9611 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.7759, allocations: 24.05 kB / 0.9611 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.7759, allocations: 0 / 0.9611 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.7875, allocations: 1.738 MB / 0.9628 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/0.7877, allocations: 194.8 kB / 0.963 GB, free: 304 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.527, allocations: 0 / 0.963 GB, free: 304 kB / 0.7169 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