Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",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.004515/0.004515, allocations: 97.94 kB / 15.73 MB, free: 6.004 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.001188/0.001188, allocations: 193.1 kB / 16.67 MB, free: 5.934 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.562/2.562, allocations: 469.8 MB / 0.7425 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 63.91 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2545, allocations: 159.1 MB / 1.22 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.001571/0.2561, allocations: 0.7022 MB / 1.221 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.2569, allocations: 0.8019 MB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.873e-05/0.2569, allocations: 4 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.5e-05/0.257, allocations: 3.938 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.382e-05/0.257, allocations: 3.938 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.559e-05/0.2571, allocations: 7.984 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.551e-05/0.2572, allocations: 47.78 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.103e-05/0.2572, allocations: 19.98 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.268e-05/0.2573, allocations: 15.98 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.239e-05/0.2574, allocations: 19.91 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.2574, allocations: 7.938 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.747e-06/0.2574, allocations: 4 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.042e-05/0.2574, allocations: 8 kB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.2574, allocations: 15.86 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.975e-05/0.2575, allocations: 47.8 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.2575, allocations: 0 / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2575, allocations: 4 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2575, allocations: 4 kB / 1.222 GB, free: 12.49 MB / 0.9825 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.0004731/0.258, allocations: 363.3 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.2581, allocations: 8.031 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.106e-05/0.2581, allocations: 34.73 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.009e-05/0.2581, allocations: 8.891 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.2582, allocations: 168.4 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.2583, allocations: 4.375 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.2583, allocations: 4.375 kB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.2585, allocations: 66.22 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.2585, allocations: 7.875 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2585, allocations: 4 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.2585, allocations: 0 / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.2588, allocations: 67.92 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003151/0.2591, allocations: 268.9 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.2593, allocations: 54.53 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.2595, allocations: 40.92 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.2595, allocations: 7.938 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.2596, allocations: 34.56 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2596, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005181/0.2601, allocations: 125.6 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.2601, allocations: 59.41 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.754e-05/0.2602, allocations: 105.8 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.2602, allocations: 25.7 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.2603, allocations: 88.14 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.2603, allocations: 19.83 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.2604, allocations: 13.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.2605, allocations: 314.8 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.2606, allocations: 35.89 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.2608, allocations: 35.91 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.2611, allocations: 68.72 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2611, allocations: 0 / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003137/0.2614, allocations: 109.9 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.2614, allocations: 8 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2614, allocations: 0 / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.2614, allocations: 0 / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2615, allocations: 11.98 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.2615, allocations: 7.984 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.432e-05/0.2616, allocations: 15.94 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.2616, allocations: 3.938 kB / 1.224 GB, free: 10.11 MB / 0.9825 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.207e-05/0.2617, allocations: 113.8 kB / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.2617, allocations: 4 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.092e-05/0.2618, allocations: 7.906 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.2618, allocations: 0 / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2618, allocations: 0 / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.2618, allocations: 0 / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.262, allocations: 173.6 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.262, allocations: 4 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.196e-05/0.2621, allocations: 15.98 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.2621, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.2621, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2621, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2621, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.2625, allocations: 203.4 kB / 1.224 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.2625, allocations: 85.05 kB / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.2625, allocations: 0 / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.2626, allocations: 11.98 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.2627, allocations: 3.984 kB / 1.225 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2627, allocations: 0 / 1.225 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.909e-05/0.2627, allocations: 87.28 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2627, allocations: 4 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001969/0.2629, allocations: 4 kB / 1.225 GB, free: 9.301 MB / 0.9825 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.000656/0.2636, allocations: 0.7363 MB / 1.225 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003188/0.2639, allocations: 71.86 kB / 1.225 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2639, allocations: 0 / 1.225 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.2641, allocations: 39.89 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.2643, allocations: 15.44 kB / 1.226 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.2647, allocations: 162.9 kB / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.265, allocations: 0.6806 MB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.946e-05/0.265, allocations: 8 kB / 1.226 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.2651, allocations: 11.44 kB / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2651, allocations: 0 / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.68/6.946, allocations: 1.636 MB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.59/24.53, allocations: 6.75 kB / 1.228 GB, free: 5.945 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches