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.001847/0.001847, allocations: 104 kB / 16.45 MB, free: 6.449 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.002331/0.002331, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.464/1.464, allocations: 230.6 MB / 252.8 MB, free: 9.145 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.2/3.2, allocations: 0.49 GB / 0.7916 GB, free: 33.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 64.94 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.327, allocations: 176.1 MB / 1.321 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002085/0.3291, allocations: 0.7271 MB / 1.322 GB, free: 2.598 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001936/0.331, allocations: 1.237 MB / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.771e-05/0.3311, allocations: 0 / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.338e-05/0.3311, allocations: 3.938 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.115e-05/0.3312, allocations: 15.86 kB / 1.323 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005999/0.3318, allocations: 142.9 kB / 1.323 GB, free: 1.191 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.332, allocations: 119.7 kB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.3321, allocations: 8 kB / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.3322, allocations: 47.95 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.3323, allocations: 51.81 kB / 1.323 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.3323, allocations: 8 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.361e-05/0.3324, allocations: 31.92 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.3325, allocations: 15.97 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.315e-05/0.3325, allocations: 39.86 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.3327, allocations: 111.9 kB / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3327, allocations: 4 kB / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.183e-06/0.3327, allocations: 0 / 1.323 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.3328, allocations: 0 / 1.323 GB, free: 0.7617 MB / 1.014 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.0006961/0.3335, allocations: 412.9 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.3335, allocations: 11.98 kB / 1.324 GB, free: 296 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.806e-05/0.3335, allocations: 34.75 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.3336, allocations: 12.89 kB / 1.324 GB, free: 240 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.3338, allocations: 184.2 kB / 1.324 GB, free: 16 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3338, allocations: 4.375 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.3339, allocations: 12.38 kB / 1.324 GB, free: 0 / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.3341, allocations: 62.22 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3341, allocations: 3.938 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.3341, allocations: 8 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3341, allocations: 0 / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.3343, allocations: 39.95 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.3349, allocations: 324.6 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.335, allocations: 54.55 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.3351, allocations: 28.92 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.3352, allocations: 0 / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.3354, allocations: 83.36 kB / 1.325 GB, free: 15.33 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3354, allocations: 0 / 1.325 GB, free: 15.33 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004891/0.3359, allocations: 149.6 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.336, allocations: 51.41 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3361, allocations: 117.8 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.3361, allocations: 29.7 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.387e-05/0.3362, allocations: 92.08 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.3362, allocations: 15.91 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.906e-05/0.3363, allocations: 33.7 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3365, allocations: 326.8 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3366, allocations: 47.97 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.3368, allocations: 79.33 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.3371, allocations: 129.1 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3371, allocations: 0 / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004847/0.3376, allocations: 203.1 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.3377, allocations: 37.69 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3377, allocations: 480 / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3377, allocations: 4 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3378, allocations: 16.05 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.3378, allocations: 0 / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.338, allocations: 39.89 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.338, allocations: 11.94 kB / 1.326 GB, free: 13.87 MB / 1.029 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.000116/0.3381, allocations: 122.7 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.3382, allocations: 7.953 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.3385, allocations: 122 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3385, allocations: 0 / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3385, allocations: 0 / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3385, allocations: 4 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005039/0.339, allocations: 362.4 kB / 1.326 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.339, allocations: 8 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.451e-05/0.3391, allocations: 11.98 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3391, allocations: 0 / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3391, allocations: 4 kB / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3391, allocations: 0 / 1.326 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3391, allocations: 3.938 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.3394, allocations: 203.4 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.3395, allocations: 77.11 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.3395, allocations: 19.92 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-05/0.3396, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.3396, allocations: 11.92 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.3397, allocations: 4 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.97e-05/0.3397, allocations: 91.27 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3397, allocations: 0 / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002991/0.34, allocations: 23.94 kB / 1.327 GB, free: 12.71 MB / 1.029 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.0007421/0.3408, allocations: 0.7437 MB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004069/0.3412, allocations: 151.3 kB / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3412, allocations: 0 / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.3413, allocations: 44.66 kB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.3416, allocations: 16.14 kB / 1.328 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.3439, allocations: 1.641 MB / 1.329 GB, free: 9.969 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.3444, allocations: 0.6885 MB / 1.33 GB, free: 9.254 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.616e-05/0.3444, allocations: 4 kB / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.3445, allocations: 19.44 kB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.3445, allocations: 4 kB / 1.33 GB, free: 9.227 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02849/0.3729, allocations: 2.46 MB / 1.332 GB, free: 6.879 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.122/8.495, allocations: 13.94 kB / 1.333 GB, free: 6.867 MB / 1.029 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 15.078030179953203]