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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.002012/0.002011, allocations: 108 kB / 15.61 MB, free: 152 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.001954/0.001954, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.825/2.825, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 69.02 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2594, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.00211/0.2615, allocations: 0.7042 MB / 1.054 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009531/0.2625, allocations: 0.878 MB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.813e-05/0.2625, allocations: 3.938 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.2626, allocations: 3.938 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.495e-05/0.2627, allocations: 3.938 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001509/0.2628, allocations: 23.91 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.324e-05/0.2629, allocations: 43.84 kB / 1.055 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.263, allocations: 12 kB / 1.055 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.234e-05/0.2631, allocations: 19.92 kB / 1.055 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.486e-05/0.2631, allocations: 27.91 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.2631, allocations: 0 / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.353e-05/0.2631, allocations: 4 kB / 1.055 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.2632, allocations: 8 kB / 1.055 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.072e-05/0.2632, allocations: 19.86 kB / 1.055 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.2633, allocations: 43.86 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.2633, allocations: 4 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2634, allocations: 0 / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.2634, allocations: 0 / 1.055 GB, free: 6.473 MB / 0.8106 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.0005107/0.2639, allocations: 363.6 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.2639, allocations: 8.625 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.096e-05/0.264, allocations: 34.73 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.264, allocations: 8.844 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2641, allocations: 172.3 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.2641, allocations: 4.375 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.2642, allocations: 384 / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002508/0.2644, allocations: 70.22 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2644, allocations: 3.938 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2644, allocations: 4 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2645, allocations: 0 / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002916/0.2647, allocations: 67.86 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003133/0.2651, allocations: 272.8 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.2653, allocations: 54.53 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.2654, allocations: 36.91 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.2655, allocations: 0 / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.2655, allocations: 46.55 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.2655, allocations: 0 / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005343/0.266, allocations: 125.5 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.2661, allocations: 51.41 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.303e-05/0.2662, allocations: 109.8 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.2662, allocations: 29.7 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.2662, allocations: 88.12 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.2662, allocations: 7.812 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.2663, allocations: 17.72 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.2664, allocations: 310.8 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.2666, allocations: 43.83 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.2667, allocations: 31.97 kB / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.267, allocations: 76.66 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.267, allocations: 4 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003329/0.2673, allocations: 97.62 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2674, allocations: 4 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2674, allocations: 0 / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.2674, allocations: 0 / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.2675, allocations: 19.97 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.2675, allocations: 0 / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.837e-05/0.2676, allocations: 11.98 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2676, allocations: 4 kB / 1.057 GB, free: 4.102 MB / 0.8106 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 7.031e-05/0.2677, allocations: 117.8 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.2677, allocations: 3.906 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.2678, allocations: 7.906 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2678, allocations: 7.984 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2678, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2678, allocations: 3.938 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.268, allocations: 173.6 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.268, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.662e-05/0.2681, allocations: 11.98 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2681, allocations: 8 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.2681, allocations: 0 / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2681, allocations: 3.984 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2681, allocations: 0 / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.2685, allocations: 191.4 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.2685, allocations: 88.95 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.2685, allocations: 4 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.2687, allocations: 11.97 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.2687, allocations: 4.375 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.2687, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.26e-05/0.2688, allocations: 91.27 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.525e-06/0.2688, allocations: 0 / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002167/0.269, allocations: 7.938 kB / 1.057 GB, free: 3.281 MB / 0.8106 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.0006613/0.2696, allocations: 0.7319 MB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003341/0.27, allocations: 71.92 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.27, allocations: 3.938 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.2702, allocations: 39.91 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2705, allocations: 17.48 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004529/0.2709, allocations: 159 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.2711, allocations: 0.6807 MB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.788e-05/0.2712, allocations: 3.984 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.2712, allocations: 19.38 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of SimCode: time 3.61e-07/0.2712, allocations: 0 / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.2886, allocations: 1.636 MB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.178/7.466, allocations: 15.59 kB / 1.061 GB, free: 15.9 MB / 0.8262 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=50 --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