Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.0009826/0.0009828, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001273/0.001273, allocations: 172.7 kB / 15.95 MB, free: 208 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.496/1.496, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.554/2.554, allocations: 409.4 MB / 0.684 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003477, allocations: 12 kB / 0.8378 GB, free: 6.438 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8073/0.8077, allocations: 146.8 MB / 0.9812 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001004/0.8088, allocations: 475.2 kB / 0.9816 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.8101, allocations: 1.05 MB / 0.9826 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.421e-05/0.8101, allocations: 0 / 0.9826 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.8102, allocations: 3.938 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.124e-05/0.8103, allocations: 11.92 kB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.8105, allocations: 39.91 kB / 0.9827 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.312e-05/0.8106, allocations: 59.78 kB / 0.9828 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.39e-05/0.8107, allocations: 20.17 kB / 0.9828 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.639e-05/0.8108, allocations: 19.92 kB / 0.9828 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.928e-05/0.8109, allocations: 31.89 kB / 0.9828 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.8109, allocations: 0 / 0.9828 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.811, allocations: 23.92 kB / 0.9829 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.811, allocations: 4 kB / 0.9829 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.811, allocations: 41.62 kB / 0.9829 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.8112, allocations: 55.88 kB / 0.9829 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.8112, allocations: 0 / 0.9829 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.495e-06/0.8112, allocations: 4 kB / 0.983 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.8112, allocations: 0 / 0.983 GB, free: 4.344 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000634/0.8118, allocations: 365.4 kB / 0.9833 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.8119, allocations: 12.03 kB / 0.9833 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.432e-05/0.812, allocations: 34.56 kB / 0.9833 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.812, allocations: 7.906 kB / 0.9834 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.8122, allocations: 171 kB / 0.9835 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.8122, allocations: 11.98 kB / 0.9835 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.8123, allocations: 4 kB / 0.9835 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.8125, allocations: 77.56 kB / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.8125, allocations: 0 / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.8125, allocations: 0 / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.8125, allocations: 0 / 0.9836 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.8127, allocations: 59.95 kB / 0.9837 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000672/0.8134, allocations: 336.6 kB / 0.984 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.8137, allocations: 62.53 kB / 0.984 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.958e-05/0.8138, allocations: 36.97 kB / 0.9841 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.8138, allocations: 4 kB / 0.9841 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.814, allocations: 83.41 kB / 0.9842 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.814, allocations: 0 / 0.9842 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004201/0.8145, allocations: 145.5 kB / 0.9843 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.8145, allocations: 55.41 kB / 0.9844 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.8147, allocations: 125.8 kB / 0.9845 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.8148, allocations: 25.7 kB / 0.9845 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.8148, allocations: 100 kB / 0.9846 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.8149, allocations: 15.81 kB / 0.9846 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.8149, allocations: 0 / 0.9846 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.815, allocations: 318.8 kB / 0.9849 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.8151, allocations: 39.97 kB / 0.9849 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.8153, allocations: 81.92 kB / 0.985 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.8154, allocations: 47.88 kB / 0.9851 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.8154, allocations: 0 / 0.9851 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003054/0.8157, allocations: 141.6 kB / 0.9852 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.8157, allocations: 8 kB / 0.9852 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.8158, allocations: 0 / 0.9852 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.8158, allocations: 4 kB / 0.9852 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.8159, allocations: 27.92 kB / 0.9852 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.8159, allocations: 0 / 0.9852 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.841e-05/0.816, allocations: 15.92 kB / 0.9853 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.816, allocations: 8.062 kB / 0.9853 GB, free: 1.719 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001233/0.8162, allocations: 127.6 kB / 0.9854 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.8162, allocations: 3.906 kB / 0.9854 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.8162, allocations: 16.36 kB / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.8162, allocations: 0 / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.8162, allocations: 0 / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.8162, allocations: 0 / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.8167, allocations: 382.8 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.8167, allocations: 3.984 kB / 0.9858 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.253e-05/0.8168, allocations: 15.94 kB / 0.9858 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.8168, allocations: 0 / 0.9858 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.8168, allocations: 8 kB / 0.9858 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8168, allocations: 4 kB / 0.9858 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.8168, allocations: 3.984 kB / 0.9858 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.8171, allocations: 207.4 kB / 0.986 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.8172, allocations: 85.02 kB / 0.9861 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.8172, allocations: 3.984 kB / 0.9861 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.752e-05/0.8173, allocations: 8 kB / 0.9861 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.8173, allocations: 7.984 kB / 0.9861 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.8173, allocations: 4 kB / 0.9861 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.308e-05/0.8174, allocations: 95.86 kB / 0.9862 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8174, allocations: 0 / 0.9862 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002513/0.8177, allocations: 16 kB / 0.9862 GB, free: 0.6445 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: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0006543/0.8183, allocations: 0.7629 MB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.8186, allocations: 91.88 kB / 0.9871 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.8186, allocations: 0 / 0.9871 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.8187, allocations: 44.36 kB / 0.9871 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.819, allocations: 7.984 kB / 0.9871 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.8201, allocations: 0.5981 MB / 0.9877 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.8205, allocations: 0.6887 MB / 0.9884 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.8205, allocations: 8 kB / 0.9884 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.8206, allocations: 23.42 kB / 0.9884 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of SimCode: time 3.81e-07/0.8206, allocations: 0 / 0.9884 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01329/0.8339, allocations: 1.814 MB / 0.9902 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002792/0.8342, allocations: 237 kB / 0.9904 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.618, allocations: 0 / 0.9904 GB, free: 12.47 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat does not exist to compare? outputFormat=mat