Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_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.001094/0.001094, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001175/0.001175, allocations: 193.3 kB / 16.14 MB, free: 6.645 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.275/1.275, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.559/2.559, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 76.5 kB / 0.8985 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3079, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.00184/0.3098, allocations: 0.7712 MB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007832/0.3106, allocations: 0.8196 MB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.185e-05/0.3107, allocations: 0 / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.206e-05/0.3107, allocations: 0 / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.828e-05/0.3108, allocations: 3.938 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.956e-05/0.3108, allocations: 15.98 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.587e-05/0.3109, allocations: 35.86 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.642e-05/0.311, allocations: 8 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.055e-05/0.3111, allocations: 19.98 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.619e-05/0.3111, allocations: 23.84 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.3111, allocations: 7.938 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-06/0.3111, allocations: 0 / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.3112, allocations: 4 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.3112, allocations: 15.92 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.165e-05/0.3113, allocations: 43.8 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3113, allocations: 0 / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.82e-07/0.3113, allocations: 0 / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.3113, allocations: 0 / 1.054 GB, free: 6.465 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.0004466/0.3118, allocations: 359.7 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3118, allocations: 15.97 kB / 1.054 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.3118, allocations: 38.73 kB / 1.054 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.208e-05/0.3119, allocations: 4.844 kB / 1.054 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.109e-05/0.312, allocations: 168.3 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.312, allocations: 384 / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.312, allocations: 4.375 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.3122, allocations: 70.22 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3122, allocations: 3.938 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3123, allocations: 0 / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.3123, allocations: 7.922 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.3125, allocations: 59.94 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000325/0.3129, allocations: 276.8 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.3131, allocations: 54.53 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.3132, allocations: 40.92 kB / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.3132, allocations: 0 / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.3133, allocations: 42.48 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.21e-07/0.3133, allocations: 0 / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004797/0.3137, allocations: 121.7 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.3138, allocations: 51.41 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.3139, allocations: 117.8 kB / 1.055 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.3139, allocations: 25.7 kB / 1.055 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.3139, allocations: 88.12 kB / 1.055 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.3139, allocations: 11.81 kB / 1.055 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.314, allocations: 13.66 kB / 1.055 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.558e-05/0.3141, allocations: 318.8 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.3142, allocations: 35.95 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.3143, allocations: 35.94 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.3146, allocations: 72.72 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3146, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002896/0.3149, allocations: 105.6 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.3149, allocations: 4 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3149, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.3149, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3151, allocations: 19.97 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3151, allocations: 0 / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.557e-05/0.3151, allocations: 11.98 kB / 1.056 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.3152, allocations: 4 kB / 1.056 GB, free: 4.09 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.783e-05/0.3152, allocations: 121.7 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.3153, allocations: 3.906 kB / 1.056 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.3153, allocations: 3.906 kB / 1.056 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3153, allocations: 4 kB / 1.056 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3153, allocations: 0 / 1.056 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3153, allocations: 3.984 kB / 1.056 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.3155, allocations: 173.6 kB / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3155, allocations: 0 / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.15e-05/0.3156, allocations: 15.98 kB / 1.056 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3156, allocations: 0 / 1.056 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3156, allocations: 4 kB / 1.056 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3156, allocations: 0 / 1.056 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3156, allocations: 320 / 1.056 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.3159, allocations: 199.4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.316, allocations: 84.95 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.316, allocations: 4 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.3161, allocations: 11.92 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.3161, allocations: 11.98 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.3161, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.984e-05/0.3162, allocations: 91.25 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3162, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002292/0.3164, allocations: 12 kB / 1.057 GB, free: 3.262 MB / 0.8106 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.0005992/0.317, allocations: 0.7202 MB / 1.057 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002955/0.3173, allocations: 75.86 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3173, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.3175, allocations: 36.28 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.3178, allocations: 9.656 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.3182, allocations: 176.6 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001915/0.3184, allocations: 0.6809 MB / 1.058 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.97e-05/0.3184, allocations: 96 / 1.058 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3185, allocations: 15.42 kB / 1.058 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.3185, allocations: 4 kB / 1.058 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009731/0.3282, allocations: 1.364 MB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.3285, allocations: 202.9 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/1.903, allocations: 4 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches