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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001282/0.001282, allocations: 107 kB / 16.27 MB, free: 6.414 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.001291/0.001291, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.576/2.576, allocations: 437.1 MB / 0.7111 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 73.77 kB / 0.8699 GB, free: 2.18 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2877, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001908/0.2897, allocations: 0.6915 MB / 1.019 GB, free: 9.914 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009994/0.2907, allocations: 0.8702 MB / 1.02 GB, free: 9.031 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.2907, allocations: 4 kB / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.929e-05/0.2908, allocations: 3.938 kB / 1.02 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.438e-05/0.2908, allocations: 7.938 kB / 1.02 GB, free: 9.016 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.291, allocations: 23.95 kB / 1.02 GB, free: 8.992 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.042e-05/0.2911, allocations: 47.8 kB / 1.02 GB, free: 8.945 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.945e-05/0.2912, allocations: 8 kB / 1.02 GB, free: 8.938 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.2913, allocations: 15.98 kB / 1.02 GB, free: 8.922 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.944e-05/0.2913, allocations: 27.84 kB / 1.02 GB, free: 8.895 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.2913, allocations: 4 kB / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.688e-06/0.2913, allocations: 4 kB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.2914, allocations: 8 kB / 1.02 GB, free: 8.879 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.191e-05/0.2914, allocations: 23.91 kB / 1.02 GB, free: 8.855 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.872e-05/0.2915, allocations: 35.81 kB / 1.02 GB, free: 8.82 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2915, allocations: 4 kB / 1.02 GB, free: 8.816 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2915, allocations: 0 / 1.02 GB, free: 8.816 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.2915, allocations: 0 / 1.02 GB, free: 8.816 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.0005305/0.2921, allocations: 363.6 kB / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2921, allocations: 8.922 kB / 1.02 GB, free: 8.402 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.2921, allocations: 0.9375 kB / 1.02 GB, free: 8.402 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.2923, allocations: 176.2 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2923, allocations: 4.375 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.2923, allocations: 4.375 kB / 1.02 GB, free: 8.184 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.2926, allocations: 70.16 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2926, allocations: 8.109 kB / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.2926, allocations: 7.938 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2926, allocations: 4 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.2929, allocations: 59.92 kB / 1.02 GB, free: 8.031 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.2933, allocations: 261 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.2935, allocations: 66.41 kB / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2937, allocations: 36.92 kB / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2937, allocations: 0 / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.2937, allocations: 34.56 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.2938, allocations: 8 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0005574/0.2943, allocations: 129.5 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.2944, allocations: 51.41 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.2945, allocations: 109.8 kB / 1.021 GB, free: 7.25 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.2945, allocations: 25.7 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.2945, allocations: 96.12 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.2946, allocations: 11.8 kB / 1.021 GB, free: 7.109 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.2946, allocations: 17.72 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2948, allocations: 310.8 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.2949, allocations: 35.95 kB / 1.022 GB, free: 6.738 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2951, allocations: 35.97 kB / 1.022 GB, free: 6.703 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.2953, allocations: 68.78 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.2954, allocations: 3.938 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003216/0.2957, allocations: 97.56 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2957, allocations: 8 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2957, allocations: 3.938 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2957, allocations: 0 / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2959, allocations: 19.97 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.2959, allocations: 0 / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.811e-05/0.296, allocations: 11.98 kB / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.296, allocations: 0 / 1.022 GB, free: 6.484 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 8.379e-05/0.2961, allocations: 117.8 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.2961, allocations: 7.906 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.2961, allocations: 7.906 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2961, allocations: 0 / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2962, allocations: 4 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.2962, allocations: 0 / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.2963, allocations: 169.6 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2964, allocations: 0 / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.895e-05/0.2965, allocations: 15.98 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.2965, allocations: 0 / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2965, allocations: 8 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2965, allocations: 0 / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2965, allocations: 4.266 kB / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.2969, allocations: 199.3 kB / 1.022 GB, free: 5.883 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.2969, allocations: 84.95 kB / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.297, allocations: 8 kB / 1.022 GB, free: 5.773 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2971, allocations: 11.98 kB / 1.022 GB, free: 5.762 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.2971, allocations: 7.984 kB / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2971, allocations: 0 / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.893e-05/0.2972, allocations: 87.28 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2972, allocations: 0 / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002169/0.2974, allocations: 7.984 kB / 1.023 GB, free: 5.66 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.0001345/0.2975, allocations: 103.2 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.2979, allocations: 71.86 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2979, allocations: 0 / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.2981, allocations: 35.97 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2984, allocations: 15.92 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003218/0.2987, allocations: 155.2 kB / 1.023 GB, free: 5.242 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.299, allocations: 0.6768 MB / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.157e-05/0.2991, allocations: 11.44 kB / 1.024 GB, free: 4.527 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.2991, allocations: 0 / 1.024 GB, free: 4.527 MB / 0.795 GB Notification: Performance of Templates: time 0.002079/0.3011, allocations: 0.7438 MB / 1.024 GB, free: 3.793 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=400 -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