Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001932/0.001932, allocations: 111 kB / 16.46 MB, free: 6.453 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.002287/0.002287, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.225/3.225, allocations: 0.49 GB / 0.7916 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",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.002097/0.002097, allocations: 77.36 kB / 1.149 GB, free: 26.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3727, allocations: 176.1 MB / 1.321 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002131/0.3749, allocations: 0.7123 MB / 1.322 GB, free: 2.559 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.3761, allocations: 0.8358 MB / 1.322 GB, free: 1.711 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.615e-05/0.3761, allocations: 4 kB / 1.322 GB, free: 1.707 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.912e-05/0.3761, allocations: 3.938 kB / 1.322 GB, free: 1.703 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.3762, allocations: 7.922 kB / 1.322 GB, free: 1.695 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.843e-05/0.3763, allocations: 15.98 kB / 1.322 GB, free: 1.68 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.129e-05/0.3764, allocations: 39.91 kB / 1.322 GB, free: 1.641 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.525e-05/0.3765, allocations: 8 kB / 1.322 GB, free: 1.633 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.889e-05/0.3765, allocations: 15.92 kB / 1.322 GB, free: 1.617 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.98e-05/0.3766, allocations: 23.92 kB / 1.322 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.3766, allocations: 4 kB / 1.322 GB, free: 1.59 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.365e-06/0.3766, allocations: 4 kB / 1.322 GB, free: 1.586 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.003e-05/0.3766, allocations: 15.92 kB / 1.323 GB, free: 1.57 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.3767, allocations: 15.92 kB / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.3768, allocations: 48.02 kB / 1.323 GB, free: 1.508 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3768, allocations: 0 / 1.323 GB, free: 1.508 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3768, allocations: 0 / 1.323 GB, free: 1.508 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.3768, allocations: 0 / 1.323 GB, free: 1.508 MB / 1.014 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.0005619/0.3773, allocations: 363.3 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3774, allocations: 11.98 kB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.926e-05/0.3774, allocations: 34.75 kB / 1.323 GB, free: 1.047 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.314e-05/0.3774, allocations: 8.875 kB / 1.323 GB, free: 1.039 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.3776, allocations: 176.3 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3776, allocations: 8.312 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.3776, allocations: 384 / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.3779, allocations: 66.22 kB / 1.323 GB, free: 0.75 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3779, allocations: 3.938 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.3779, allocations: 7.938 kB / 1.323 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3779, allocations: 0 / 1.323 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.3782, allocations: 67.92 kB / 1.323 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00038/0.3786, allocations: 260.9 kB / 1.324 GB, free: 376 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.3788, allocations: 62.53 kB / 1.324 GB, free: 304 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.379, allocations: 36.92 kB / 1.324 GB, free: 264 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.379, allocations: 3.938 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.3791, allocations: 34.56 kB / 1.324 GB, free: 216 kB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.3791, allocations: 0 / 1.324 GB, free: 216 kB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.000561/0.3796, allocations: 133.5 kB / 1.324 GB, free: 76 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.3797, allocations: 51.41 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.3798, allocations: 109.8 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3798, allocations: 25.7 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.3799, allocations: 84.14 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.3799, allocations: 15.89 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.3799, allocations: 21.72 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.3801, allocations: 310.8 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.3802, allocations: 31.95 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3804, allocations: 35.91 kB / 1.324 GB, free: 15.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.3807, allocations: 76.98 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3807, allocations: 0 / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003442/0.381, allocations: 93.62 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.381, allocations: 4 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3811, allocations: 4 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3811, allocations: 4 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.3812, allocations: 11.98 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3812, allocations: 0 / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.454e-05/0.3813, allocations: 15.97 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.3813, allocations: 0 / 1.325 GB, free: 15.14 MB / 1.029 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 0.0001102/0.3814, allocations: 121.7 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.3814, allocations: 3.953 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.3815, allocations: 15.91 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3815, allocations: 3.938 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3815, allocations: 0 / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3815, allocations: 0 / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.3817, allocations: 177.5 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3817, allocations: 7.938 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3818, allocations: 19.98 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3818, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.3818, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3818, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3818, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004421/0.3823, allocations: 195.4 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.208e-05/0.3823, allocations: 85.06 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.3823, allocations: 3.938 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.3824, allocations: 15.98 kB / 1.325 GB, free: 14.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.3825, allocations: 7.984 kB / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3825, allocations: 0 / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.578e-05/0.3825, allocations: 87.28 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3825, allocations: 0 / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002244/0.3828, allocations: 4 kB / 1.325 GB, free: 14.3 MB / 1.029 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.0008734/0.3836, allocations: 0.728 MB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003633/0.384, allocations: 71.86 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.384, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.3842, allocations: 39.95 kB / 1.326 GB, free: 13.44 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.3845, allocations: 9.719 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005673/0.3851, allocations: 151.1 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.3855, allocations: 0.6807 MB / 1.327 GB, free: 12.54 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.3855, allocations: 4 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.3856, allocations: 23.38 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3856, allocations: 0 / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.4116, allocations: 1.636 MB / 1.329 GB, free: 10.96 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.625, allocations: 19.06 kB / 1.329 GB, free: 10.95 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.39393442007713]