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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002823/0.002823, allocations: 212 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.566/1.566, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.061/3.061, allocations: 0.5003 GB / 0.8026 GB, free: 6.746 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 67.91 kB / 1.165 GB, free: 472 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9897/0.9917, allocations: 178.9 MB / 1.34 GB, free: 16.3 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.001956/0.9937, allocations: 0.7177 MB / 1.341 GB, free: 15.83 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.9947, allocations: 0.8301 MB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.279e-05/0.9947, allocations: 1.031 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.9948, allocations: 3.938 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.653e-05/0.9949, allocations: 5.688 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 6.608e-05/0.9949, allocations: 14.16 kB / 1.342 GB, free: 15.19 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.995, allocations: 42.92 kB / 1.342 GB, free: 15.17 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.9951, allocations: 13.97 kB / 1.342 GB, free: 15.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.558e-05/0.9952, allocations: 16.75 kB / 1.342 GB, free: 15.15 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.839e-05/0.9953, allocations: 27.31 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.9953, allocations: 3.344 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.504e-06/0.9953, allocations: 3.844 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.9953, allocations: 11.25 kB / 1.342 GB, free: 15.13 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.9954, allocations: 17.8 kB / 1.342 GB, free: 15.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.9955, allocations: 38.78 kB / 1.342 GB, free: 15.11 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.9955, allocations: 0 / 1.342 GB, free: 15.11 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9955, allocations: 0 / 1.342 GB, free: 15.11 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.9955, allocations: 0 / 1.342 GB, free: 15.11 MB / 1.061 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.0005128/0.996, allocations: 373.5 kB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.996, allocations: 9.781 kB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.9961, allocations: 1.125 kB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.519e-05/0.9961, allocations: 32.88 kB / 1.342 GB, free: 14.69 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.377e-05/0.9961, allocations: 3.547 kB / 1.342 GB, free: 14.69 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.413e-05/0.9962, allocations: 167.4 kB / 1.342 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.9962, allocations: 1.438 kB / 1.342 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.9962, allocations: 11.36 kB / 1.342 GB, free: 14.48 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.9965, allocations: 75.38 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.9965, allocations: 1.031 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.9965, allocations: 4 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.9965, allocations: 1.188 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.9968, allocations: 65.64 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003134/0.9971, allocations: 271 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.9973, allocations: 55.11 kB / 1.343 GB, free: 14.1 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.9975, allocations: 42.44 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.9975, allocations: 5.891 kB / 1.343 GB, free: 14.08 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.9975, allocations: 31.66 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.083e-06/0.9975, allocations: 3.938 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.000566/0.9981, allocations: 132.1 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.9981, allocations: 52.69 kB / 1.343 GB, free: 13.93 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.885e-05/0.9982, allocations: 106.6 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.9982, allocations: 31.58 kB / 1.343 GB, free: 13.79 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.992e-05/0.9982, allocations: 89.84 kB / 1.343 GB, free: 13.7 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.9983, allocations: 10.48 kB / 1.343 GB, free: 13.69 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.9983, allocations: 13.86 kB / 1.343 GB, free: 13.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.852e-05/0.9984, allocations: 325.4 kB / 1.344 GB, free: 13.35 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.9985, allocations: 35.17 kB / 1.344 GB, free: 13.34 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.9987, allocations: 31.17 kB / 1.344 GB, free: 13.34 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.9989, allocations: 65.94 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.9989, allocations: 0.75 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000352/0.9993, allocations: 98.06 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.9993, allocations: 4.562 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.9993, allocations: 2.266 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.9993, allocations: 48 / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.9995, allocations: 19.06 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.9995, allocations: 5.562 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.062e-05/0.9995, allocations: 15.89 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.9995, allocations: 0 / 1.344 GB, free: 13.27 MB / 1.061 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 4.858e-05/0.9996, allocations: 117.7 kB / 1.344 GB, free: 13.15 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.9996, allocations: 5.984 kB / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.371e-05/0.9996, allocations: 9.125 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.9996, allocations: 1.969 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.9997, allocations: 0 / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.9997, allocations: 0.7031 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.9998, allocations: 170.6 kB / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.9998, allocations: 0 / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.625e-05/0.9999, allocations: 14.75 kB / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.9999, allocations: 2.531 kB / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.9999, allocations: 4 kB / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.9999, allocations: 0 / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9999, allocations: 4.609 kB / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/1, allocations: 197.8 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/1, allocations: 83.33 kB / 1.345 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/1, allocations: 5.969 kB / 1.345 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/1, allocations: 14.28 kB / 1.345 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/1, allocations: 4.188 kB / 1.345 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/1, allocations: 1.219 kB / 1.345 GB, free: 12.67 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.812e-05/1, allocations: 87.48 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1, allocations: 5.594 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002125/1.001, allocations: 5.438 kB / 1.345 GB, free: 12.59 MB / 1.061 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.000544/1.001, allocations: 0.7264 MB / 1.345 GB, free: 11.91 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003608/1.002, allocations: 73.56 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.002, allocations: 1.844 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/1.002, allocations: 34 kB / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/1.002, allocations: 8.312 kB / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/1.002, allocations: 164.9 kB / 1.346 GB, free: 11.73 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/1.003, allocations: 0.6796 MB / 1.346 GB, free: 11.03 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.954e-05/1.003, allocations: 1.938 kB / 1.346 GB, free: 11.03 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/1.003, allocations: 14.17 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/1.003, allocations: 1.375 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/1.021, allocations: 1.69 MB / 1.348 GB, free: 10.6 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.64/9.661, allocations: 9.5 kB / 1.348 GB, free: 10.6 MB / 1.061 GB " [Timeout remaining time 290] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.431860320968553]