Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001447/0.001447, allocations: 104.5 kB / 16.35 MB, free: 5.828 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.001609/0.001609, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.478/2.478, allocations: 437.1 MB / 0.7112 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 72.42 kB / 0.8707 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3048, allocations: 151.6 MB / 1.019 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001918/0.3068, allocations: 0.7 MB / 1.019 GB, free: 9.141 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009115/0.3077, allocations: 0.8741 MB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.214e-05/0.3077, allocations: 4 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.872e-05/0.3078, allocations: 3.938 kB / 1.02 GB, free: 8.246 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.423e-05/0.3078, allocations: 3.938 kB / 1.02 GB, free: 8.242 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000161/0.308, allocations: 23.95 kB / 1.02 GB, free: 8.219 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.653e-05/0.3081, allocations: 43.8 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.609e-05/0.3082, allocations: 15.98 kB / 1.02 GB, free: 8.16 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.414e-05/0.3083, allocations: 19.98 kB / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.762e-05/0.3083, allocations: 23.84 kB / 1.02 GB, free: 8.117 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.3083, allocations: 4 kB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.3084, allocations: 4 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.3084, allocations: 11.92 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.3084, allocations: 15.88 kB / 1.02 GB, free: 8.082 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.397e-05/0.3085, allocations: 43.88 kB / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3085, allocations: 0 / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3085, allocations: 4 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.3085, allocations: 0 / 1.021 GB, free: 8.035 MB / 0.795 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.0005048/0.309, allocations: 363.3 kB / 1.021 GB, free: 7.629 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.3091, allocations: 12.62 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.3091, allocations: 0.9375 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.3093, allocations: 180.2 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3093, allocations: 384 / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.3093, allocations: 8.375 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002329/0.3095, allocations: 70.2 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3096, allocations: 192 / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.3096, allocations: 7.938 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3096, allocations: 0 / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.3098, allocations: 59.94 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.3102, allocations: 268.9 kB / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.3104, allocations: 58.47 kB / 1.022 GB, free: 6.875 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.3105, allocations: 36.92 kB / 1.022 GB, free: 6.836 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.3106, allocations: 4 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.3106, allocations: 34.55 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3106, allocations: 0 / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004853/0.3111, allocations: 129.4 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.3111, allocations: 59.41 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.3112, allocations: 109.8 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.3112, allocations: 25.7 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.3113, allocations: 92.12 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.3113, allocations: 7.812 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.3113, allocations: 17.66 kB / 1.022 GB, free: 6.312 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3115, allocations: 314.8 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.3116, allocations: 35.95 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.3117, allocations: 31.97 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.3119, allocations: 64.78 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.312, allocations: 3.938 kB / 1.022 GB, free: 5.859 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002799/0.3122, allocations: 101.6 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3123, allocations: 8 kB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3123, allocations: 0 / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3123, allocations: 3.984 kB / 1.023 GB, free: 5.742 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3124, allocations: 15.98 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3124, allocations: 4 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.3125, allocations: 11.98 kB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3125, allocations: 7.938 kB / 1.023 GB, free: 5.703 MB / 0.795 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.825e-05/0.3126, allocations: 113.8 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.3126, allocations: 7.906 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.3127, allocations: 8.219 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3127, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3127, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3127, allocations: 3.984 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.3129, allocations: 169.6 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3129, allocations: 4 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.975e-05/0.313, allocations: 15.98 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.313, allocations: 3.984 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.313, allocations: 0 / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.313, allocations: 0 / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.313, allocations: 3.938 kB / 1.023 GB, free: 5.316 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.3133, allocations: 199.4 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.3134, allocations: 84.95 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3134, allocations: 0 / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3135, allocations: 15.97 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.3135, allocations: 8 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3136, allocations: 0 / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.208e-05/0.3136, allocations: 87.27 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3136, allocations: 4 kB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002161/0.3138, allocations: 8 kB / 1.023 GB, free: 4.883 MB / 0.795 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.0001277/0.314, allocations: 103.2 kB / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002909/0.3143, allocations: 67.86 kB / 1.023 GB, free: 4.703 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3143, allocations: 0 / 1.023 GB, free: 4.703 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.3144, allocations: 43.95 kB / 1.024 GB, free: 4.66 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.3147, allocations: 15.88 kB / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002748/0.315, allocations: 113.6 kB / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.3152, allocations: 0.6846 MB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.837e-05/0.3153, allocations: 8 kB / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.3153, allocations: 11.44 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3153, allocations: 0 / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of Templates: time 0.002592/0.3179, allocations: 0.7218 MB / 1.025 GB, free: 3.066 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches