Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001441/0.001441, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001527/0.001527, allocations: 174.4 kB / 22.46 MB, free: 5.355 MB / 14.72 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 1.488/1.488, allocations: 177.1 MB / 202.8 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] 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 2.834/2.834, allocations: 377.8 MB / 0.6221 GB, free: 12.56 MB / 0.5919 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.626e-06/3.626e-06, allocations: 0 / 0.9814 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.213e-05/4.576e-05, allocations: 2.281 kB / 0.9814 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002375/0.002421, allocations: 0.7442 MB / 0.9821 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001934/0.004354, allocations: 1.189 MB / 0.9833 GB, free: 10 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.676e-05/0.004411, allocations: 0 / 0.9833 GB, free: 10 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.206e-05/0.004443, allocations: 3.938 kB / 0.9833 GB, free: 10 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.734e-05/0.004541, allocations: 19.86 kB / 0.9833 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.005137, allocations: 139.8 kB / 0.9835 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.005363, allocations: 127.7 kB / 0.9836 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.005494, allocations: 20.11 kB / 0.9836 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.005658, allocations: 71.94 kB / 0.9837 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.005771, allocations: 43.86 kB / 0.9837 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.416e-05/0.005805, allocations: 11.94 kB / 0.9837 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.415e-05/0.005889, allocations: 23.98 kB / 0.9837 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.186e-05/0.005921, allocations: 15.94 kB / 0.9838 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.869e-05/0.006, allocations: 39.95 kB / 0.9838 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.006257, allocations: 143.6 kB / 0.9839 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.006261, allocations: 7.938 kB / 0.9839 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.006262, allocations: 0 / 0.9839 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.006267, allocations: 0 / 0.9839 GB, free: 9.348 MB / 0.9356 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.0006758/0.006943, allocations: 347.7 kB / 0.9843 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.006985, allocations: 8.031 kB / 0.9843 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.007107, allocations: 16.88 kB / 0.9843 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.007222, allocations: 113.7 kB / 0.9844 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.007244, allocations: 8.312 kB / 0.9844 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.007274, allocations: 12.38 kB / 0.9844 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.007492, allocations: 70.22 kB / 0.9845 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.0075, allocations: 192 / 0.9845 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.007523, allocations: 4.375 kB / 0.9845 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.007532, allocations: 8.109 kB / 0.9845 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.007727, allocations: 43.95 kB / 0.9845 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004935/0.00822, allocations: 264.4 kB / 0.9848 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.008411, allocations: 54.55 kB / 0.9848 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.008518, allocations: 40.89 kB / 0.9849 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.008545, allocations: 0 / 0.9849 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.008833, allocations: 103.3 kB / 0.985 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.008835, allocations: 4 kB / 0.985 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.000471/0.009306, allocations: 133.6 kB / 0.9851 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.009356, allocations: 67.39 kB / 0.9852 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.009463, allocations: 117.8 kB / 0.9853 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.009494, allocations: 29.7 kB / 0.9853 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.00957, allocations: 100 kB / 0.9854 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.009598, allocations: 19.89 kB / 0.9854 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.009673, allocations: 37.7 kB / 0.9855 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.009828, allocations: 326.8 kB / 0.9858 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.01002, allocations: 81.66 kB / 0.9859 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.01024, allocations: 114.8 kB / 0.986 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.01055, allocations: 154.8 kB / 0.9861 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01055, allocations: 0 / 0.9861 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000511/0.01106, allocations: 248.9 kB / 0.9864 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.01111, allocations: 37.7 kB / 0.9864 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.01112, allocations: 4 kB / 0.9864 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.01114, allocations: 3.938 kB / 0.9864 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.01124, allocations: 23.91 kB / 0.9864 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.01125, allocations: 0 / 0.9864 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.01147, allocations: 39.89 kB / 0.9865 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.01149, allocations: 12 kB / 0.9865 GB, free: 6.5 MB / 0.9356 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 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001247/0.01162, allocations: 132.6 kB / 0.9866 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.01164, allocations: 7.938 kB / 0.9866 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003283/0.01196, allocations: 122 kB / 0.9867 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.01197, allocations: 0 / 0.9867 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.01197, allocations: 0 / 0.9867 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.01198, allocations: 3.984 kB / 0.9867 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004527/0.01243, allocations: 322.5 kB / 0.987 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01243, allocations: 0 / 0.987 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.878e-05/0.0125, allocations: 15.92 kB / 0.987 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.0125, allocations: 0 / 0.987 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.01251, allocations: 4 kB / 0.987 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.01252, allocations: 4 kB / 0.9871 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01252, allocations: 0 / 0.9871 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.01288, allocations: 219.5 kB / 0.9873 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.167e-05/0.01289, allocations: 11.95 kB / 0.9873 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.01291, allocations: 0 / 0.9873 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.963e-05/0.013, allocations: 7.984 kB / 0.9873 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.01304, allocations: 8 kB / 0.9873 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.01305, allocations: 7.984 kB / 0.9873 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.931e-05/0.01311, allocations: 87.83 kB / 0.9874 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.01311, allocations: 0 / 0.9874 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002689/0.01338, allocations: 23.98 kB / 0.9874 GB, free: 5.477 MB / 0.9356 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 () * Number of clocked 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 (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.0001764/0.01356, allocations: 115.1 kB / 0.9875 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004358/0.01399, allocations: 189 kB / 0.9877 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.014, allocations: 4 kB / 0.9877 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.01412, allocations: 35.97 kB / 0.9877 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.01443, allocations: 23.86 kB / 0.9878 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.01487, allocations: 169.5 kB / 0.9879 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.484e-05/0.01495, allocations: 79.58 kB / 0.988 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.297e-05/0.01498, allocations: 11.92 kB / 0.988 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.01502, allocations: 12.5 kB / 0.988 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.01502, allocations: 0 / 0.988 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of Templates: time 0.005198/0.02021, allocations: 1.549 MB / 0.9895 GB, free: 3.266 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 8.409978576004505]