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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 104.7 kB / 16.27 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.62/2.62, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 74.5 kB / 0.9245 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.69/0.6919, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.00173/0.6936, allocations: 0.7026 MB / 1.084 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007279/0.6944, allocations: 0.871 MB / 1.084 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.657e-05/0.6944, allocations: 0 / 1.084 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.186e-05/0.6945, allocations: 3.938 kB / 1.084 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.586e-05/0.6945, allocations: 5.969 kB / 1.084 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.6947, allocations: 21 kB / 1.085 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.865e-05/0.6947, allocations: 46.86 kB / 1.085 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.6948, allocations: 10.33 kB / 1.085 GB, free: 500 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.489e-05/0.6949, allocations: 21.72 kB / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.948e-05/0.6949, allocations: 26.53 kB / 1.085 GB, free: 472 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.695, allocations: 3.938 kB / 1.085 GB, free: 472 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.078e-05/0.695, allocations: 4.219 kB / 1.085 GB, free: 472 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.695, allocations: 6.922 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.695, allocations: 17.12 kB / 1.085 GB, free: 456 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.54e-05/0.6951, allocations: 35.88 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.6951, allocations: 4.5 kB / 1.085 GB, free: 440 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.064e-06/0.6951, allocations: 0.5938 kB / 1.085 GB, free: 440 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.6951, allocations: 3.938 kB / 1.085 GB, free: 436 kB / 0.8262 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.0003949/0.6955, allocations: 362.6 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.6956, allocations: 10.09 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.6956, allocations: 6.25 kB / 1.085 GB, free: 56 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.6957, allocations: 172.3 kB / 1.085 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.6958, allocations: 9.625 kB / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.6958, allocations: 3.844 kB / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.696, allocations: 67.42 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.696, allocations: 192 / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.696, allocations: 5.281 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.6961, allocations: 1.156 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002835/0.6963, allocations: 66.58 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.6967, allocations: 269.9 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.6969, allocations: 60.06 kB / 1.086 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.6971, allocations: 40.61 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.6971, allocations: 1.062 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.6971, allocations: 31.83 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.6971, allocations: 1.094 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0005273/0.6977, allocations: 131.5 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.6977, allocations: 53.98 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.6978, allocations: 107.1 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.6978, allocations: 25.7 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/0.6979, allocations: 90.47 kB / 1.086 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.6979, allocations: 15 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.6979, allocations: 13.08 kB / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.6981, allocations: 322.4 kB / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.6982, allocations: 30.66 kB / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.6984, allocations: 31.52 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.6986, allocations: 73.8 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6987, allocations: 3.938 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003157/0.699, allocations: 99.8 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.699, allocations: 4.844 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.699, allocations: 1.125 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.699, allocations: 1.25 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.6991, allocations: 18.86 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.6992, allocations: 4 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.613e-05/0.6992, allocations: 11.55 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.6992, allocations: 1.062 kB / 1.087 GB, free: 14.64 MB / 0.8419 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.624e-05/0.6993, allocations: 113.5 kB / 1.087 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.6994, allocations: 9.469 kB / 1.087 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.503e-05/0.6994, allocations: 6.609 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.6994, allocations: 2.719 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.6994, allocations: 0 / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.6994, allocations: 9.328 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.6996, allocations: 169.9 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.6996, allocations: 0 / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.498e-05/0.6997, allocations: 20.86 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.6997, allocations: 0 / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.6997, allocations: 0 / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.6997, allocations: 5.188 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6997, allocations: 1.078 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000372/0.7001, allocations: 197.2 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.7002, allocations: 83.66 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.7002, allocations: 0.625 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.7003, allocations: 12.3 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.7003, allocations: 3.766 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.7004, allocations: 9.828 kB / 1.087 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.972e-05/0.7004, allocations: 83.73 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7004, allocations: 0 / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002134/0.7006, allocations: 7.094 kB / 1.087 GB, free: 13.97 MB / 0.8419 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.000124/0.7008, allocations: 105.3 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003453/0.7011, allocations: 76.19 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.7011, allocations: 3.938 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.7013, allocations: 34.53 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.7015, allocations: 9.031 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.7018, allocations: 160.2 kB / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.7021, allocations: 0.6805 MB / 1.088 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.7022, allocations: 9.781 kB / 1.088 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7022, allocations: 0 / 1.088 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of Templates: time 0.002103/0.7043, allocations: 0.7464 MB / 1.089 GB, free: 12.94 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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