Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Reals.Validation.Modulo,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",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.001534/0.001534, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 192.8 kB / 16.66 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.643/2.643, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 75.88 kB / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3211, allocations: 162.3 MB / 1.242 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001789/0.3229, allocations: 0.7164 MB / 1.243 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.3239, allocations: 0.8585 MB / 1.243 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.3239, allocations: 0 / 1.243 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.324, allocations: 3.938 kB / 1.243 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.284e-05/0.324, allocations: 7.922 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.3242, allocations: 11.98 kB / 1.243 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.593e-05/0.3243, allocations: 55.78 kB / 1.244 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.695e-05/0.3244, allocations: 11.98 kB / 1.244 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.677e-05/0.3245, allocations: 15.98 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.064e-05/0.3245, allocations: 23.86 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.3245, allocations: 0 / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.183e-05/0.3245, allocations: 4 kB / 1.244 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.062e-05/0.3246, allocations: 11.98 kB / 1.244 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.958e-05/0.3246, allocations: 15.94 kB / 1.244 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 9.361e-05/0.3247, allocations: 47.78 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3247, allocations: 4 kB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3247, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.3247, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005206/0.3253, allocations: 367.2 kB / 1.244 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3253, allocations: 8.031 kB / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.3253, allocations: 34.75 kB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.3254, allocations: 8.938 kB / 1.244 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.3255, allocations: 168.3 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3255, allocations: 8.375 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.3255, allocations: 384 / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/0.3258, allocations: 70.2 kB / 1.244 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3258, allocations: 7.938 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.3258, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.3258, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002852/0.3261, allocations: 71.86 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003193/0.3264, allocations: 268.8 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.3266, allocations: 58.53 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.3268, allocations: 40.91 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3268, allocations: 4 kB / 1.245 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.3268, allocations: 30.56 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3269, allocations: 0 / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005213/0.3274, allocations: 133.5 kB / 1.245 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.3274, allocations: 55.39 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.293e-05/0.3275, allocations: 109.8 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.3275, allocations: 25.7 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.3276, allocations: 84.14 kB / 1.245 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3276, allocations: 11.84 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.3277, allocations: 17.72 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3278, allocations: 322.8 kB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.328, allocations: 31.97 kB / 1.245 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.3281, allocations: 31.95 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.3284, allocations: 68.73 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3284, allocations: 4 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003252/0.3287, allocations: 101.5 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3287, allocations: 4 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3288, allocations: 0 / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3288, allocations: 4 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3289, allocations: 15.98 kB / 1.246 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.3289, allocations: 4 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.789e-05/0.329, allocations: 11.98 kB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.329, allocations: 0 / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.47e-05/0.3291, allocations: 117.8 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.3291, allocations: 3.953 kB / 1.246 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.3292, allocations: 11.91 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3292, allocations: 0 / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3292, allocations: 0 / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.3292, allocations: 4 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.3294, allocations: 173.6 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3294, allocations: 0 / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.403e-05/0.3295, allocations: 19.97 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.3295, allocations: 0 / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3295, allocations: 4 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3295, allocations: 0 / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3295, allocations: 3.938 kB / 1.246 GB, free: 5.219 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.3299, allocations: 195.4 kB / 1.246 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.3299, allocations: 89.42 kB / 1.246 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.3299, allocations: 3.938 kB / 1.246 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.3301, allocations: 11.98 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.3301, allocations: 0 / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3301, allocations: 0 / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.75e-05/0.3302, allocations: 95.27 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3302, allocations: 0 / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002061/0.3304, allocations: 8 kB / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.000722/0.3311, allocations: 0.7363 MB / 1.247 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003245/0.3314, allocations: 71.86 kB / 1.247 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.3315, allocations: 0 / 1.247 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.3316, allocations: 39.95 kB / 1.247 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3319, allocations: 8 kB / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.3323, allocations: 159 kB / 1.247 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.3326, allocations: 0.6807 MB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.509e-05/0.3326, allocations: 0 / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.3327, allocations: 15.44 kB / 1.248 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.3327, allocations: 4 kB / 1.248 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.916/3.249, allocations: 1.677 MB / 1.25 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/14.59, allocations: 5.812 kB / 1.25 GB, free: 1.406 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches