Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.584/1.584, allocations: 285.4 MB / 298 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001193/0.001194, allocations: 180.9 kB / 366.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.2 MB / 0.6248 GB, free: 7.699 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000776/0.0007759, allocations: 90.48 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.081e-05/6.108e-05, allocations: 4 kB / 0.8584 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8465/0.8466, allocations: 115.3 MB / 0.971 GB, free: 77.96 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2233/1.07, allocations: 137.9 MB / 1.106 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/1.07, allocations: 71.95 kB / 1.106 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003947/1.074, allocations: 1.098 MB / 1.107 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.944e-06/1.074, allocations: 0 / 1.107 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.546e-06/1.074, allocations: 0 / 1.107 GB, free: 12.72 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005411/1.075, allocations: 366.4 kB / 1.107 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.075, allocations: 8.031 kB / 1.107 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.443e-05/1.075, allocations: 37.88 kB / 1.107 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/1.075, allocations: 4 kB / 1.107 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/1.075, allocations: 171 kB / 1.107 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/1.075, allocations: 5.25 kB / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/1.075, allocations: 4 kB / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/1.075, allocations: 49.62 kB / 1.107 GB, free: 12 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/1.075, allocations: 1.656 kB / 1.107 GB, free: 12 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/1.075, allocations: 0 / 1.107 GB, free: 12 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/1.075, allocations: 4 kB / 1.107 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.192e-05/1.076, allocations: 20 kB / 1.107 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004843/1.076, allocations: 282.4 kB / 1.108 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/1.076, allocations: 49.27 kB / 1.108 GB, free: 11.6 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.207e-05/1.076, allocations: 20.97 kB / 1.108 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/1.076, allocations: 5.781 kB / 1.108 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/1.076, allocations: 59.41 kB / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/1.076, allocations: 0.9062 kB / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0002234/1.077, allocations: 67.06 kB / 1.108 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/1.077, allocations: 56.41 kB / 1.108 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/1.077, allocations: 100.9 kB / 1.108 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/1.077, allocations: 30.36 kB / 1.108 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/1.077, allocations: 88.05 kB / 1.108 GB, free: 11.13 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/1.077, allocations: 12.88 kB / 1.108 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-06/1.077, allocations: 4 kB / 1.108 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001482/1.077, allocations: 323.8 kB / 1.108 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.205e-05/1.077, allocations: 12 kB / 1.109 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.086e-05/1.077, allocations: 42.16 kB / 1.109 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.133e-05/1.077, allocations: 15.98 kB / 1.109 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.077, allocations: 0 / 1.109 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001363/1.077, allocations: 78.2 kB / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/1.077, allocations: 12.81 kB / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/1.077, allocations: 0 / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/1.077, allocations: 0 / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/1.078, allocations: 23.92 kB / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/1.078, allocations: 1.031 kB / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.981e-05/1.078, allocations: 17.92 kB / 1.109 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/1.078, allocations: 0 / 1.109 GB, free: 10.59 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.696e-05/1.078, allocations: 108.9 kB / 1.109 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/1.078, allocations: 7.906 kB / 1.109 GB, free: 10.47 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/1.078, allocations: 86.33 kB / 1.109 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/1.078, allocations: 4 kB / 1.109 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/1.078, allocations: 1.594 kB / 1.109 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/1.078, allocations: 0 / 1.109 GB, free: 10.37 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/1.078, allocations: 334.5 kB / 1.109 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.078, allocations: 0 / 1.109 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/1.078, allocations: 11.98 kB / 1.109 GB, free: 9.977 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.079, allocations: 4 kB / 1.109 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/1.079, allocations: 4 kB / 1.109 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.079, allocations: 0 / 1.109 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.079, allocations: 0 / 1.109 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001744/1.079, allocations: 173.8 kB / 1.109 GB, free: 9.785 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/1.079, allocations: 85.09 kB / 1.109 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/1.079, allocations: 0 / 1.109 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/1.079, allocations: 15.98 kB / 1.109 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/1.079, allocations: 4 kB / 1.109 GB, free: 9.664 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/1.079, allocations: 3.938 kB / 1.109 GB, free: 9.66 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.424e-05/1.079, allocations: 91.2 kB / 1.11 GB, free: 9.57 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/1.079, allocations: 0 / 1.11 GB, free: 9.57 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002337/1.079, allocations: 25.17 kB / 1.11 GB, free: 9.547 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000546/1.08, allocations: 0.7085 MB / 1.11 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001252/1.08, allocations: 43.94 kB / 1.11 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.08, allocations: 0 / 1.11 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.147e-05/1.08, allocations: 21.69 kB / 1.11 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/1.08, allocations: 11.98 kB / 1.11 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004415/1.081, allocations: 119 kB / 1.11 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/1.081, allocations: 0.685 MB / 1.111 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.967e-05/1.081, allocations: 8.172 kB / 1.111 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/1.081, allocations: 15.44 kB / 1.111 GB, free: 7.852 MB / 0.7136 GB Notification: Performance of SimCode: time 3.7e-07/1.081, allocations: 0 / 1.111 GB, free: 7.852 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/1.094, allocations: 1.468 MB / 1.113 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/1.095, allocations: 168.7 kB / 1.113 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/2.655, allocations: 0 / 1.113 GB, free: 6.355 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)