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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001386, allocations: 98.92 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.001562/0.001562, allocations: 177.3 kB / 15.94 MB, free: 228 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.871/1.871, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.048/3.048, allocations: 409.2 MB / 0.6838 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 8 kB / 0.8375 GB, free: 6.578 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.067/1.067, allocations: 146.8 MB / 0.9809 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001357/1.069, allocations: 413 kB / 0.9813 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002603/1.071, allocations: 1.049 MB / 0.9823 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.924e-05/1.071, allocations: 0 / 0.9823 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/1.071, allocations: 0 / 0.9823 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001266/1.071, allocations: 11.98 kB / 0.9823 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/1.072, allocations: 35.83 kB / 0.9823 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/1.072, allocations: 35.95 kB / 0.9824 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/1.072, allocations: 15.97 kB / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/1.072, allocations: 23.92 kB / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/1.073, allocations: 35.84 kB / 0.9824 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/1.073, allocations: 4 kB / 0.9824 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/1.073, allocations: 15.97 kB / 0.9825 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.498e-05/1.073, allocations: 11.98 kB / 0.9825 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.022e-05/1.073, allocations: 37.64 kB / 0.9825 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/1.073, allocations: 47.88 kB / 0.9826 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/1.073, allocations: 0 / 0.9826 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.757e-06/1.073, allocations: 0 / 0.9826 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.392e-06/1.073, allocations: 0 / 0.9826 GB, free: 4.594 MB / 0.7325 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.001032/1.074, allocations: 389.4 kB / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.543e-05/1.074, allocations: 8.031 kB / 0.9829 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.757e-05/1.074, allocations: 30.56 kB / 0.983 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/1.074, allocations: 7.938 kB / 0.983 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/1.075, allocations: 171 kB / 0.9831 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/1.075, allocations: 8 kB / 0.9831 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/1.075, allocations: 8 kB / 0.9831 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/1.075, allocations: 89.53 kB / 0.9832 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/1.075, allocations: 0 / 0.9832 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/1.075, allocations: 4 kB / 0.9832 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/1.075, allocations: 4 kB / 0.9832 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/1.075, allocations: 59.95 kB / 0.9833 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007268/1.076, allocations: 308.8 kB / 0.9836 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/1.077, allocations: 94.44 kB / 0.9837 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/1.077, allocations: 4 kB / 0.9837 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000317/1.077, allocations: 95.36 kB / 0.9838 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 4.308e-06/1.077, allocations: 7.938 kB / 0.9838 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0007603/1.078, allocations: 185.6 kB / 0.984 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/1.078, allocations: 55.41 kB / 0.984 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/1.078, allocations: 109.8 kB / 0.9841 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/1.078, allocations: 29.7 kB / 0.9841 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.856e-05/1.078, allocations: 88.38 kB / 0.9842 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/1.078, allocations: 31.73 kB / 0.9843 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/1.078, allocations: 7.938 kB / 0.9843 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002356/1.078, allocations: 314.8 kB / 0.9846 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/1.079, allocations: 51.97 kB / 0.9846 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/1.079, allocations: 64.45 kB / 0.9847 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/1.079, allocations: 47.98 kB / 0.9847 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/1.079, allocations: 4 kB / 0.9847 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004434/1.079, allocations: 149.4 kB / 0.9849 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/1.079, allocations: 9.094 kB / 0.9849 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/1.079, allocations: 0 / 0.9849 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/1.08, allocations: 4.062 kB / 0.9849 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/1.08, allocations: 23.97 kB / 0.9849 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/1.08, allocations: 4 kB / 0.9849 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/1.08, allocations: 23.78 kB / 0.9849 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/1.08, allocations: 4 kB / 0.9849 GB, free: 1.914 MB / 0.7325 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.0001653/1.08, allocations: 117.8 kB / 0.985 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.191e-05/1.08, allocations: 11.95 kB / 0.9851 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005458/1.081, allocations: 157.8 kB / 0.9852 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/1.081, allocations: 0 / 0.9852 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.081, allocations: 0 / 0.9852 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.081, allocations: 0 / 0.9852 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009859/1.082, allocations: 430.8 kB / 0.9856 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/1.082, allocations: 0 / 0.9856 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.814e-05/1.082, allocations: 11.98 kB / 0.9856 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/1.082, allocations: 4 kB / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/1.082, allocations: 8 kB / 0.9856 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.082, allocations: 0 / 0.9856 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.082, allocations: 3.938 kB / 0.9856 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/1.082, allocations: 247.3 kB / 0.9859 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/1.083, allocations: 77.11 kB / 0.986 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/1.083, allocations: 8 kB / 0.986 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/1.083, allocations: 15.92 kB / 0.986 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/1.083, allocations: 7.984 kB / 0.986 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/1.083, allocations: 0 / 0.986 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.184e-05/1.083, allocations: 95.52 kB / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/1.083, allocations: 0 / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003961/1.083, allocations: 24 kB / 0.9861 GB, free: 0.6094 MB / 0.7325 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.00128/1.085, allocations: 0.7826 MB / 0.9869 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004554/1.085, allocations: 107.9 kB / 0.987 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.085, allocations: 0 / 0.987 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000219/1.085, allocations: 60.3 kB / 0.987 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/1.086, allocations: 13.67 kB / 0.987 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/1.087, allocations: 0.6952 MB / 0.9877 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007305/1.088, allocations: 0.6887 MB / 0.9884 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001202/1.088, allocations: 4.438 kB / 0.9884 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.134e-05/1.088, allocations: 23.42 kB / 0.9884 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of SimCode: time 6.11e-07/1.088, allocations: 3.938 kB / 0.9884 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/1.111, allocations: 1.748 MB / 0.9901 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003682/1.111, allocations: 196.1 kB / 0.9903 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/3.503, allocations: 2.812 kB / 0.9903 GB, free: 12.29 MB / 0.7481 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) Environment - environmentSimulation: 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