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.0007315/0.0007315, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008848/0.0008848, allocations: 165.9 kB / 22.45 MB, free: 2.102 MB / 18.57 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 0.9306/0.9306, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.806/1.806, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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="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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.509e-06/4.509e-06, allocations: 0 / 0.9997 GB, free: 13.43 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.834e-05/3.285e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.43 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002242/0.002275, allocations: 0.6912 MB / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008871/0.003162, allocations: 0.8198 MB / 1.001 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.492e-05/0.003197, allocations: 0 / 1.001 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.199e-05/0.003229, allocations: 3.938 kB / 1.001 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.003299, allocations: 15.84 kB / 1.001 GB, free: 11.88 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 6.773e-05/0.003367, allocations: 15.98 kB / 1.001 GB, free: 11.87 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.588e-05/0.003453, allocations: 39.86 kB / 1.001 GB, free: 11.83 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.003567, allocations: 11.98 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.44e-05/0.003651, allocations: 23.98 kB / 1.001 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.956e-05/0.003691, allocations: 15.92 kB / 1.001 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.003714, allocations: 7.938 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.422e-06/0.00372, allocations: 4 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.003738, allocations: 7.984 kB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.772e-05/0.003765, allocations: 15.92 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 9.269e-05/0.003858, allocations: 43.86 kB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.003861, allocations: 0 / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.114e-06/0.003863, allocations: 0 / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.003867, allocations: 0 / 1.001 GB, free: 11.7 MB / 0.9636 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.0004044/0.004272, allocations: 290.3 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.004322, allocations: 8.75 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.004359, allocations: 34.73 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.004392, allocations: 8.891 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.00449, allocations: 109.8 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.004502, allocations: 384 / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.004514, allocations: 384 / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.00469, allocations: 74.16 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.004698, allocations: 8.125 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.004707, allocations: 384 / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.004715, allocations: 4.125 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.004861, allocations: 63.92 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003097/0.00517, allocations: 236 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.00529, allocations: 46.55 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.525e-05/0.005375, allocations: 48.91 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.005387, allocations: 11.86 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.005407, allocations: 34.56 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.005408, allocations: 0 / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.000301/0.005709, allocations: 133.5 kB / 1.002 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.00574, allocations: 51.41 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.323e-05/0.005803, allocations: 105.8 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.005813, allocations: 29.7 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.005849, allocations: 88.12 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.005864, allocations: 3.953 kB / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.00589, allocations: 17.72 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.732e-05/0.005967, allocations: 314.8 kB / 1.003 GB, free: 9.824 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.7e-05/0.006044, allocations: 39.91 kB / 1.003 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.514e-05/0.00611, allocations: 35.95 kB / 1.003 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.006239, allocations: 68.73 kB / 1.003 GB, free: 9.68 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006241, allocations: 0 / 1.003 GB, free: 9.68 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001674/0.006408, allocations: 105.5 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.006423, allocations: 7.984 kB / 1.003 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.006428, allocations: 320 / 1.003 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.00644, allocations: 0 / 1.003 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.37e-05/0.006523, allocations: 15.98 kB / 1.003 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.006529, allocations: 0 / 1.003 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.754e-05/0.006566, allocations: 15.98 kB / 1.003 GB, free: 9.531 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.006573, allocations: 7.922 kB / 1.003 GB, free: 9.523 MB / 0.9636 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 5.5e-05/0.006628, allocations: 113.8 kB / 1.003 GB, free: 9.402 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.006641, allocations: 3.938 kB / 1.003 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.32e-05/0.006664, allocations: 11.98 kB / 1.003 GB, free: 9.379 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.006667, allocations: 4 kB / 1.003 GB, free: 9.375 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.006672, allocations: 0 / 1.003 GB, free: 9.375 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.006674, allocations: 3.938 kB / 1.003 GB, free: 9.371 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.006783, allocations: 128.8 kB / 1.004 GB, free: 9.203 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.006784, allocations: 0 / 1.004 GB, free: 9.203 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.006825, allocations: 23.92 kB / 1.004 GB, free: 9.18 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.006826, allocations: 4 kB / 1.004 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.006833, allocations: 0 / 1.004 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.006834, allocations: 3.984 kB / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.006835, allocations: 0 / 1.004 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.007026, allocations: 187.4 kB / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-06/0.007034, allocations: 11.88 kB / 1.004 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.007045, allocations: 0 / 1.004 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.968e-05/0.007095, allocations: 15.98 kB / 1.004 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.007134, allocations: 7.984 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.007136, allocations: 0 / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.258e-05/0.007169, allocations: 91.27 kB / 1.004 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.007169, allocations: 0 / 1.004 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001509/0.00732, allocations: 15.89 kB / 1.004 GB, free: 8.832 MB / 0.9636 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.000377/0.007697, allocations: 0.7284 MB / 1.005 GB, free: 8.078 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001799/0.007876, allocations: 71.89 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.007878, allocations: 0 / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.088e-05/0.007949, allocations: 31.97 kB / 1.005 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.008191, allocations: 11.95 kB / 1.005 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.008538, allocations: 155.2 kB / 1.005 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.451e-05/0.008582, allocations: 71.22 kB / 1.005 GB, free: 7.688 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.191e-05/0.008604, allocations: 4 kB / 1.005 GB, free: 7.684 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.008645, allocations: 16.48 kB / 1.005 GB, free: 7.668 MB / 0.9636 GB Notification: Performance of SimCode: time 4.31e-07/0.008645, allocations: 0 / 1.005 GB, free: 7.668 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.0266, allocations: 2.322 MB / 1.007 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/6.853, allocations: 6.172 kB / 1.007 GB, free: 5.48 MB / 0.9636 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins/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] "Error: Could not read variable sub.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv. Warning: Get data of variable sub.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv failed! Error: Could not read variable sub.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv. Warning: Get data of variable sub.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.127448040060699]