Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.721/1.721, allocations: 289.9 MB / 297.4 MB, free: 6.406 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.001082/0.001082, allocations: 176.8 kB / 366.7 MB, free: 1.652 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.798/1.798, allocations: 205.3 MB / 0.626 GB, free: 7.172 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.000937/0.0009363, allocations: 96.31 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.72e-05/1.706e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7584/0.7585, allocations: 116.3 MB / 0.9734 GB, free: 76.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/0.9772, allocations: 138.7 MB / 1.109 GB, free: 11.42 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.9776, allocations: 69.62 kB / 1.109 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01104/0.9886, allocations: 2.248 MB / 1.111 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of FrontEnd: time 5.901e-06/0.9887, allocations: 7.297 kB / 1.111 GB, free: 9.141 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.9887, allocations: 3.094 kB / 1.111 GB, free: 9.141 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008566/0.9896, allocations: 404 kB / 1.111 GB, free: 8.695 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.65e-05/0.9897, allocations: 8.031 kB / 1.111 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.9898, allocations: 11.91 kB / 1.111 GB, free: 8.676 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.9901, allocations: 175.6 kB / 1.112 GB, free: 8.465 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.9901, allocations: 0 / 1.112 GB, free: 8.465 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.9902, allocations: 13.19 kB / 1.112 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001438/0.9903, allocations: 16 kB / 1.112 GB, free: 8.438 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.9905, allocations: 57.62 kB / 1.112 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.9905, allocations: 0.6875 kB / 1.112 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.9906, allocations: 0.5 kB / 1.112 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.9906, allocations: 3.938 kB / 1.112 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007503/0.9913, allocations: 329.8 kB / 1.112 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.9915, allocations: 42.61 kB / 1.112 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.646e-05/0.9916, allocations: 16.98 kB / 1.112 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.9916, allocations: 4 kB / 1.112 GB, free: 7.941 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.9918, allocations: 77.12 kB / 1.112 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 2.635e-06/0.9919, allocations: 0 / 1.112 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0002971/0.9922, allocations: 85.59 kB / 1.112 GB, free: 7.766 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.9922, allocations: 52.41 kB / 1.112 GB, free: 7.703 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.9924, allocations: 110.5 kB / 1.112 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.9924, allocations: 33.7 kB / 1.112 GB, free: 7.551 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.643e-05/0.9926, allocations: 95.98 kB / 1.113 GB, free: 7.453 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.9926, allocations: 23.72 kB / 1.113 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.9926, allocations: 4 kB / 1.113 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.9928, allocations: 318.8 kB / 1.113 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.993, allocations: 35.98 kB / 1.113 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.9931, allocations: 79.52 kB / 1.113 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.9935, allocations: 43.97 kB / 1.113 GB, free: 6.934 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.9935, allocations: 1.5 kB / 1.113 GB, free: 6.934 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005828/0.9941, allocations: 153.6 kB / 1.113 GB, free: 6.777 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.982e-05/0.9941, allocations: 37.69 kB / 1.113 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.9942, allocations: 7.984 kB / 1.113 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.9942, allocations: 0 / 1.113 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.9944, allocations: 19.98 kB / 1.113 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.336e-05/0.9944, allocations: 4 kB / 1.113 GB, free: 6.703 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.9948, allocations: 55.11 kB / 1.113 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.9949, allocations: 4 kB / 1.113 GB, free: 6.648 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001404/0.995, allocations: 120.8 kB / 1.113 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002103/0.9952, allocations: 85.67 kB / 1.113 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.9953, allocations: 7.906 kB / 1.113 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.9955, allocations: 101 kB / 1.114 GB, free: 6.324 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.9956, allocations: 3.938 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.9956, allocations: 0 / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.9956, allocations: 3.953 kB / 1.114 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.996, allocations: 321 kB / 1.114 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.9961, allocations: 0 / 1.114 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.9962, allocations: 11.98 kB / 1.114 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.9962, allocations: 0 / 1.114 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.9962, allocations: 8 kB / 1.114 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.9962, allocations: 3.938 kB / 1.114 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.9963, allocations: 3.953 kB / 1.114 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.9965, allocations: 183.4 kB / 1.114 GB, free: 5.738 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.005e-05/0.9966, allocations: 85.02 kB / 1.114 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.9966, allocations: 0 / 1.114 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.9968, allocations: 11.98 kB / 1.114 GB, free: 5.625 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.9969, allocations: 7.984 kB / 1.114 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.9969, allocations: 7.953 kB / 1.114 GB, free: 5.609 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.908e-05/0.997, allocations: 94.12 kB / 1.114 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.41e-07/0.997, allocations: 0 / 1.114 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004674/0.9975, allocations: 28 kB / 1.114 GB, free: 5.492 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007238/0.9982, allocations: 0.7293 MB / 1.115 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003505/0.9986, allocations: 143.3 kB / 1.115 GB, free: 4.586 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.9986, allocations: 0 / 1.115 GB, free: 4.586 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.057e-05/0.9987, allocations: 24 kB / 1.115 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.999, allocations: 12.92 kB / 1.115 GB, free: 4.551 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006131/0.9996, allocations: 150.8 kB / 1.115 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/1, allocations: 0.702 MB / 1.116 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.737e-05/1, allocations: 4 kB / 1.116 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.093e-05/1, allocations: 23.42 kB / 1.116 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/1, allocations: 0 / 1.116 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/1.021, allocations: 1.828 MB / 1.118 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/1.021, allocations: 148.7 kB / 1.118 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/2.574, allocations: 0 / 1.118 GB, free: 1.668 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)