Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008664/0.0008664, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9352/0.9352, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.74/1.74, allocations: 377.8 MB / 0.6221 GB, free: 8.695 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_12_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_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 5.651e-06/5.651e-06, allocations: 0 / 0.981 GB, free: 1.461 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.931e-05/4.497e-05, allocations: 6.281 kB / 0.981 GB, free: 1.453 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002435/0.00248, allocations: 0.7362 MB / 0.9817 GB, free: 0.7148 MB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.00377, allocations: 1.085 MB / 0.9828 GB, free: 15.62 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.686e-05/0.003817, allocations: 3.938 kB / 0.9828 GB, free: 15.61 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.003847, allocations: 7.938 kB / 0.9828 GB, free: 15.61 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.139e-05/0.003919, allocations: 11.86 kB / 0.9828 GB, free: 15.59 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.004236, allocations: 59.69 kB / 0.9828 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.004345, allocations: 71.78 kB / 0.9829 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.004453, allocations: 16.17 kB / 0.9829 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.721e-05/0.00454, allocations: 43.89 kB / 0.983 GB, free: 15.4 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.625e-05/0.004587, allocations: 19.97 kB / 0.983 GB, free: 15.38 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.004605, allocations: 8 kB / 0.983 GB, free: 15.38 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.403e-05/0.004659, allocations: 23.97 kB / 0.983 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.874e-05/0.004678, allocations: 11.94 kB / 0.983 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/0.004712, allocations: 27.91 kB / 0.9831 GB, free: 15.31 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.004854, allocations: 83.73 kB / 0.9831 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.004858, allocations: 0 / 0.9831 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.213e-06/0.004859, allocations: 0 / 0.9831 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.004864, allocations: 4 kB / 0.9831 GB, free: 15.23 MB / 0.9011 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.0004243/0.005288, allocations: 306 kB / 0.9834 GB, free: 14.9 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.005329, allocations: 12.03 kB / 0.9834 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.005364, allocations: 34.75 kB / 0.9835 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.0054, allocations: 8.891 kB / 0.9835 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.187e-05/0.005491, allocations: 117.7 kB / 0.9836 GB, free: 14.7 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.005503, allocations: 4.375 kB / 0.9836 GB, free: 14.69 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.005516, allocations: 8.375 kB / 0.9836 GB, free: 14.68 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.005666, allocations: 66.22 kB / 0.9837 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.005674, allocations: 8.062 kB / 0.9837 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.078e-06/0.005683, allocations: 384 / 0.9837 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.005689, allocations: 3.938 kB / 0.9837 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.995e-05/0.005779, allocations: 43.95 kB / 0.9837 GB, free: 14.56 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004791/0.006258, allocations: 275.9 kB / 0.984 GB, free: 14.25 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.006386, allocations: 62.52 kB / 0.9841 GB, free: 14.18 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.256e-05/0.006439, allocations: 28.95 kB / 0.9841 GB, free: 14.14 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.006461, allocations: 4 kB / 0.9841 GB, free: 14.14 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.006652, allocations: 79.33 kB / 0.9842 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.006654, allocations: 0 / 0.9842 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0003473/0.007001, allocations: 125.6 kB / 0.9843 GB, free: 13.92 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.007047, allocations: 59.39 kB / 0.9843 GB, free: 13.85 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.239e-05/0.00714, allocations: 125.8 kB / 0.9845 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.007153, allocations: 29.64 kB / 0.9845 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.007202, allocations: 92.12 kB / 0.9846 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.007221, allocations: 19.83 kB / 0.9846 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.541e-05/0.007267, allocations: 33.7 kB / 0.9846 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.34e-05/0.00735, allocations: 310.8 kB / 0.9849 GB, free: 13.22 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.705e-05/0.007417, allocations: 35.97 kB / 0.985 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-05/0.007495, allocations: 74.42 kB / 0.985 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.007632, allocations: 113.8 kB / 0.9851 GB, free: 12.96 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.007635, allocations: 4 kB / 0.9851 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001809/0.007816, allocations: 129.5 kB / 0.9853 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.007832, allocations: 6.344 kB / 0.9853 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.007837, allocations: 0 / 0.9853 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.007851, allocations: 8.219 kB / 0.9853 GB, free: 12.81 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.701e-05/0.007938, allocations: 23.91 kB / 0.9853 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.007944, allocations: 4 kB / 0.9853 GB, free: 12.78 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.18e-05/0.007986, allocations: 11.95 kB / 0.9853 GB, free: 12.77 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.007999, allocations: 7.984 kB / 0.9853 GB, free: 12.76 MB / 0.9011 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 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.008075, allocations: 129.7 kB / 0.9854 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-06/0.008083, allocations: 3.953 kB / 0.9854 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.341e-05/0.008106, allocations: 8.438 kB / 0.9855 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.008109, allocations: 0 / 0.9855 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.008114, allocations: 4 kB / 0.9855 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.008117, allocations: 0 / 0.9855 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003356/0.008453, allocations: 349.8 kB / 0.9858 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.008455, allocations: 0 / 0.9858 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.849e-05/0.008483, allocations: 11.98 kB / 0.9858 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.008486, allocations: 0 / 0.9858 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.008493, allocations: 4 kB / 0.9858 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.008495, allocations: 7.875 kB / 0.9858 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008496, allocations: 3.938 kB / 0.9858 GB, free: 12.19 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.008655, allocations: 207.4 kB / 0.986 GB, free: 11.97 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.008666, allocations: 7.953 kB / 0.986 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.128e-05/0.008677, allocations: 0 / 0.986 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.128e-05/0.008718, allocations: 7.984 kB / 0.986 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.008754, allocations: 8 kB / 0.986 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.008761, allocations: 3.938 kB / 0.986 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 3.748e-05/0.008799, allocations: 99.42 kB / 0.9861 GB, free: 11.85 MB / 0.9011 GB Notification: Performance of sort global known variables: time 6e-08/0.008799, allocations: 0 / 0.9861 GB, free: 11.85 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001785/0.008977, allocations: 12 kB / 0.9861 GB, free: 11.84 MB / 0.9011 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004344/0.009412, allocations: 0.748 MB / 0.9869 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001877/0.0096, allocations: 75.88 kB / 0.987 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.009601, allocations: 0 / 0.987 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 6.279e-05/0.009664, allocations: 40.34 kB / 0.987 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.00988, allocations: 15.88 kB / 0.987 GB, free: 10.93 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.01113, allocations: 1.518 MB / 0.9885 GB, free: 9.293 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.302e-05/0.01118, allocations: 79.33 kB / 0.9886 GB, free: 9.195 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 3.077e-05/0.01121, allocations: 4 kB / 0.9886 GB, free: 9.191 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.01126, allocations: 24.48 kB / 0.9886 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of SimCode: time 7.71e-07/0.01126, allocations: 0 / 0.9886 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.02693, allocations: 2.831 MB / 0.9914 GB, free: 6.547 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.745/6.772, allocations: 4.062 kB / 0.9914 GB, free: 6.543 MB / 0.9011 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.816624941304326]