Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.001969/0.001969, allocations: 79.36 kB / 19.18 MB, free: 2.52 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.002572/0.002572, allocations: 167 kB / 22.46 MB, free: 5.375 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.556/1.556, allocations: 177.2 MB / 202.8 MB, free: 9.172 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.975/2.975, allocations: 377.8 MB / 0.6221 GB, free: 12.63 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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.046e-06/3.046e-06, allocations: 0 / 0.9814 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.602e-05/3.906e-05, allocations: 2.281 kB / 0.9814 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002102/0.002141, allocations: 0.716 MB / 0.9821 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002123/0.004264, allocations: 1.228 MB / 0.9833 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.131e-05/0.004326, allocations: 0 / 0.9833 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.601e-05/0.004362, allocations: 3.938 kB / 0.9833 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.463e-05/0.004446, allocations: 11.88 kB / 0.9833 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.005035, allocations: 143.5 kB / 0.9835 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000196/0.005231, allocations: 111.8 kB / 0.9836 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.005343, allocations: 19.97 kB / 0.9836 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.005482, allocations: 67.89 kB / 0.9837 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.0056, allocations: 43.81 kB / 0.9837 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.005631, allocations: 8 kB / 0.9837 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.73e-05/0.005718, allocations: 31.92 kB / 0.9837 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.088e-05/0.005749, allocations: 19.91 kB / 0.9838 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.106e-05/0.00582, allocations: 27.98 kB / 0.9838 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.006072, allocations: 131.6 kB / 0.9839 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.006077, allocations: 4 kB / 0.9839 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.52e-07/0.006078, allocations: 0 / 0.9839 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.006084, allocations: 0 / 0.9839 GB, free: 9.469 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000675/0.006759, allocations: 331.8 kB / 0.9842 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.006809, allocations: 8.031 kB / 0.9842 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.00693, allocations: 8.891 kB / 0.9842 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.007056, allocations: 121.7 kB / 0.9844 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.007075, allocations: 4.375 kB / 0.9844 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.007101, allocations: 8.375 kB / 0.9844 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.007329, allocations: 70.14 kB / 0.9844 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.007339, allocations: 4.188 kB / 0.9844 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.007351, allocations: 384 / 0.9844 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.00736, allocations: 384 / 0.9844 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.00756, allocations: 51.89 kB / 0.9845 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.008075, allocations: 240.5 kB / 0.9847 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.008258, allocations: 50.48 kB / 0.9848 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.008359, allocations: 24.94 kB / 0.9848 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.008386, allocations: 7.938 kB / 0.9848 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.00867, allocations: 95.3 kB / 0.9849 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.008671, allocations: 0 / 0.9849 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005028/0.009174, allocations: 145.6 kB / 0.985 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.009232, allocations: 51.41 kB / 0.9851 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.009372, allocations: 117.8 kB / 0.9852 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.009408, allocations: 29.7 kB / 0.9852 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.826e-05/0.009486, allocations: 92.09 kB / 0.9853 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.009515, allocations: 19.83 kB / 0.9853 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.104e-05/0.009596, allocations: 41.7 kB / 0.9854 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.009766, allocations: 314.8 kB / 0.9857 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.00996, allocations: 81.66 kB / 0.9857 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.01017, allocations: 101.1 kB / 0.9858 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.01048, allocations: 133 kB / 0.986 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01048, allocations: 8 kB / 0.986 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004881/0.01097, allocations: 236.8 kB / 0.9862 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.01101, allocations: 33.7 kB / 0.9862 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.01102, allocations: 0 / 0.9862 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/0.01105, allocations: 7.984 kB / 0.9862 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.01115, allocations: 8 kB / 0.9862 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.01116, allocations: 0 / 0.9862 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.01137, allocations: 40.02 kB / 0.9863 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.01139, allocations: 4 kB / 0.9863 GB, free: 6.785 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001424/0.01154, allocations: 121.8 kB / 0.9864 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.964e-05/0.01155, allocations: 15.83 kB / 0.9864 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003344/0.01189, allocations: 114.1 kB / 0.9865 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.0119, allocations: 4 kB / 0.9865 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.0119, allocations: 0 / 0.9865 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.01191, allocations: 7.984 kB / 0.9865 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/0.01239, allocations: 294.1 kB / 0.9868 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.0124, allocations: 4 kB / 0.9868 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.01246, allocations: 7.984 kB / 0.9868 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.01246, allocations: 3.938 kB / 0.9868 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.01248, allocations: 8 kB / 0.9868 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01248, allocations: 0 / 0.9868 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.01249, allocations: 4.469 kB / 0.9868 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.01282, allocations: 215.4 kB / 0.9871 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.68e-05/0.01284, allocations: 11.89 kB / 0.9871 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.01286, allocations: 3.984 kB / 0.9871 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.554e-05/0.01295, allocations: 4 kB / 0.9871 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.01299, allocations: 3.984 kB / 0.9871 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.013, allocations: 8 kB / 0.9871 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.182e-05/0.01306, allocations: 95.61 kB / 0.9872 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.01306, allocations: 0 / 0.9872 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002761/0.01334, allocations: 24 kB / 0.9872 GB, free: 5.785 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * 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.0001934/0.01353, allocations: 99.25 kB / 0.9873 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004259/0.01396, allocations: 193 kB / 0.9875 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01396, allocations: 0 / 0.9875 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.01408, allocations: 27.98 kB / 0.9875 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.01437, allocations: 16.05 kB / 0.9875 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.01477, allocations: 152.9 kB / 0.9877 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.179e-05/0.01484, allocations: 75.52 kB / 0.9877 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.754e-05/0.01487, allocations: 4 kB / 0.9877 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.0149, allocations: 12.5 kB / 0.9878 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of SimCode: time 3.71e-07/0.0149, allocations: 0 / 0.9878 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of Templates: time 0.005158/0.02006, allocations: 1.524 MB / 0.9892 GB, free: 3.664 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.456434652209282]