Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_10_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.001084/0.001084, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001165, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.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.597/2.597, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001468, allocations: 67.91 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.628/0.6295, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002452/0.632, allocations: 0.702 MB / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001168/0.6332, allocations: 0.8001 MB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.814e-05/0.6332, allocations: 0 / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.208e-05/0.6333, allocations: 3.938 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.682e-05/0.6334, allocations: 3.938 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 7.94e-05/0.6335, allocations: 11.98 kB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.6336, allocations: 51.83 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.6337, allocations: 12 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.423e-05/0.6338, allocations: 19.92 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.952e-05/0.6339, allocations: 23.86 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.6339, allocations: 4 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.001e-05/0.6339, allocations: 7.938 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.341e-05/0.6339, allocations: 7.984 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.634, allocations: 11.94 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.743e-05/0.6341, allocations: 51.78 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.6341, allocations: 4 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.914e-06/0.6341, allocations: 0 / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.655e-06/0.6341, allocations: 0 / 1.019 GB, free: 0.7617 MB / 0.7637 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.0006355/0.6348, allocations: 365.5 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.6348, allocations: 8.031 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.6349, allocations: 30.75 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.6349, allocations: 4.938 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.6351, allocations: 172.3 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.6351, allocations: 8.375 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.6351, allocations: 384 / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.6354, allocations: 70.16 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.6354, allocations: 3.938 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.6354, allocations: 4 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.6354, allocations: 0 / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.6357, allocations: 67.92 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.6363, allocations: 264.9 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.6365, allocations: 62.47 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.6367, allocations: 44.92 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.6367, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.6367, allocations: 34.56 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.6367, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006047/0.6373, allocations: 133.5 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.6374, allocations: 51.41 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.6375, allocations: 109.8 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.6375, allocations: 29.64 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.6376, allocations: 88.14 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.6376, allocations: 7.844 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.6377, allocations: 21.7 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6378, allocations: 314.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.638, allocations: 31.97 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.6381, allocations: 31.95 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.6384, allocations: 76.72 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.6385, allocations: 3.938 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003491/0.6388, allocations: 97.81 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.6388, allocations: 6.031 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.6388, allocations: 48 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.6389, allocations: 3.984 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.639, allocations: 19.92 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.639, allocations: 7.938 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.967e-05/0.6391, allocations: 19.97 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.6391, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 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.645e-05/0.6392, allocations: 109.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.6392, allocations: 4 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.6393, allocations: 7.906 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.6393, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6393, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6393, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.6395, allocations: 177.5 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6395, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.595e-05/0.6396, allocations: 15.98 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.6396, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.6396, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6396, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.114e-05/0.6397, allocations: 4 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.64, allocations: 203.3 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.6401, allocations: 77.11 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.6401, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.6402, allocations: 11.98 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.6403, allocations: 3.984 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.6403, allocations: 8 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.276e-05/0.6403, allocations: 83.28 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6403, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002224/0.6406, allocations: 8 kB / 1.022 GB, free: 13.58 MB / 0.7794 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.0007468/0.6413, allocations: 0.7318 MB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003548/0.6417, allocations: 71.86 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6417, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.6419, allocations: 43.95 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.6422, allocations: 13.14 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005579/0.6428, allocations: 159.2 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.6432, allocations: 0.6807 MB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.945e-05/0.6432, allocations: 4 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.6433, allocations: 19.38 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.6433, allocations: 0 / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.6624, allocations: 1.588 MB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.987/8.649, allocations: 11.88 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches