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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008656/0.0008656, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005331/0.005331, allocations: 172.5 kB / 16.26 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.53/2.53, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.0003251, allocations: 11.94 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2329, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.0007519/0.2337, allocations: 448.3 kB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000864/0.2345, allocations: 0.8702 MB / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.2346, allocations: 0 / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.2346, allocations: 3.938 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.045e-05/0.2347, allocations: 3.984 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001283/0.2348, allocations: 19.92 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.555e-05/0.2349, allocations: 39.86 kB / 1.06 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.441e-05/0.235, allocations: 11.98 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.953e-05/0.235, allocations: 19.92 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.521e-05/0.2351, allocations: 15.92 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.2351, allocations: 4 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-06/0.2351, allocations: 0 / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.482e-05/0.2351, allocations: 7.984 kB / 1.06 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.097e-05/0.2352, allocations: 45.56 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.076e-05/0.2353, allocations: 31.88 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2353, allocations: 0 / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2353, allocations: 0 / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.2353, allocations: 4 kB / 1.06 GB, free: 3.344 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.0004347/0.2357, allocations: 371.7 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2358, allocations: 11.97 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.038e-05/0.2358, allocations: 34.69 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.994e-05/0.2358, allocations: 8.938 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.532e-05/0.2359, allocations: 172.2 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.2359, allocations: 384 / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.2359, allocations: 384 / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.2362, allocations: 82.2 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2362, allocations: 7.938 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.2362, allocations: 0 / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.2362, allocations: 4 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.2365, allocations: 83.92 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002913/0.2368, allocations: 272.8 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.237, allocations: 66.55 kB / 1.061 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.2372, allocations: 48.91 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2372, allocations: 11.97 kB / 1.061 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2373, allocations: 30.56 kB / 1.061 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.2373, allocations: 0 / 1.061 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005386/0.2378, allocations: 169.4 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.2379, allocations: 51.41 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.008e-05/0.2379, allocations: 113.8 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.2379, allocations: 25.7 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.29e-05/0.238, allocations: 84.14 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.238, allocations: 7.906 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/0.238, allocations: 9.719 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2382, allocations: 322.8 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2383, allocations: 43.97 kB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.2385, allocations: 43.89 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.2388, allocations: 92.73 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2388, allocations: 7.938 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003295/0.2391, allocations: 129.5 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.2391, allocations: 4 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.2392, allocations: 0 / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.215e-06/0.2392, allocations: 0 / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.2393, allocations: 19.98 kB / 1.062 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.2393, allocations: 320 / 1.062 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.188e-05/0.2394, allocations: 19.98 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.2394, allocations: 4 kB / 1.063 GB, free: 0.8008 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 6.286e-05/0.2395, allocations: 113.8 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.2395, allocations: 4 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.313e-05/0.2395, allocations: 7.906 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.2395, allocations: 0 / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2395, allocations: 4 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.2395, allocations: 0 / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.2397, allocations: 169.6 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2397, allocations: 4 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.2398, allocations: 27.91 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2398, allocations: 0 / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-06/0.2398, allocations: 0 / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.2398, allocations: 7.984 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2398, allocations: 0 / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.2402, allocations: 223.3 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.2403, allocations: 85.03 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.2403, allocations: 0 / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2404, allocations: 15.98 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.2404, allocations: 4 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.2405, allocations: 3.984 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.728e-05/0.2405, allocations: 87.28 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2405, allocations: 4 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002019/0.2407, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 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.0006224/0.2413, allocations: 0.7556 MB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003281/0.2417, allocations: 95.95 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2417, allocations: 0 / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.2419, allocations: 59.83 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.2421, allocations: 7.938 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003764/0.2425, allocations: 166.2 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2428, allocations: 0.6848 MB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.651e-05/0.2428, allocations: 4 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.2428, allocations: 11.44 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2429, allocations: 0 / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/0.4973, allocations: 1.338 MB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.4975, allocations: 208.4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.17, allocations: 0 / 1.066 GB, free: 12.62 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