Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.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.0007582/0.0007582, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007252/0.0007252, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.8577/0.8577, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.777/1.777, allocations: 389 MB / 0.633 GB, free: 12.71 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.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.325e-06/2.325e-06, allocations: 0 / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.677e-05/2.91e-05, allocations: 5.094 kB / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001285/0.001314, allocations: 0.5207 MB / 1 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0004213/0.001735, allocations: 171.5 kB / 1 GB, free: 12.85 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.001756, allocations: 0 / 1 GB, free: 12.85 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.385e-05/0.00179, allocations: 7.875 kB / 1 GB, free: 12.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.001834, allocations: 3.938 kB / 1 GB, free: 12.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.002249, allocations: 71.75 kB / 1 GB, free: 12.77 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 5.335e-05/0.002302, allocations: 8 kB / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.002342, allocations: 0 / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 3.719e-05/0.002379, allocations: 15.98 kB / 1 GB, free: 12.74 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.735e-05/0.002406, allocations: 3.938 kB / 1 GB, free: 12.74 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.002422, allocations: 4 kB / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.002627, allocations: 159.6 kB / 1.001 GB, free: 12.58 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.002674, allocations: 4 kB / 1.001 GB, free: 12.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.912e-05/0.002693, allocations: 7.984 kB / 1.001 GB, free: 12.57 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.002857, allocations: 83.75 kB / 1.001 GB, free: 12.48 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.002859, allocations: 0 / 1.001 GB, free: 12.48 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.004e-06/0.002861, allocations: 0 / 1.001 GB, free: 12.48 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.002866, allocations: 0 / 1.001 GB, free: 12.48 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003267/0.003193, allocations: 270.2 kB / 1.001 GB, free: 12.19 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.003246, allocations: 12.75 kB / 1.001 GB, free: 12.18 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.191e-05/0.003278, allocations: 30.75 kB / 1.001 GB, free: 12.14 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.003304, allocations: 8.891 kB / 1.001 GB, free: 12.13 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.151e-05/0.003396, allocations: 113.7 kB / 1.001 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.003411, allocations: 8.375 kB / 1.001 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.003438, allocations: 384 / 1.001 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.003557, allocations: 63.91 kB / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.003566, allocations: 192 / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.003575, allocations: 384 / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.361e-06/0.003582, allocations: 4.125 kB / 1.001 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.556e-05/0.003607, allocations: 15.98 kB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.003758, allocations: 128.8 kB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.984e-05/0.003817, allocations: 30.59 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.156e-05/0.003839, allocations: 12.91 kB / 1.001 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-05/0.003883, allocations: 4 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.003907, allocations: 38.5 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.003909, allocations: 0 / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0005261/0.004435, allocations: 229.1 kB / 1.002 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.004467, allocations: 55.62 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.741e-05/0.004534, allocations: 117.8 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.004544, allocations: 25.7 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.004576, allocations: 84.14 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.264e-05/0.004598, allocations: 7.953 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.004624, allocations: 21.7 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.335e-05/0.004698, allocations: 310.8 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.965e-05/0.004717, allocations: 19.94 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.6e-05/0.004743, allocations: 25.7 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.903e-05/0.004792, allocations: 49.64 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.004793, allocations: 0 / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.27e-05/0.004866, allocations: 65.64 kB / 1.002 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.00488, allocations: 4 kB / 1.002 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.004885, allocations: 0 / 1.002 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.004899, allocations: 3.938 kB / 1.002 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.291e-05/0.004952, allocations: 15.92 kB / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.004958, allocations: 0 / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.102e-05/0.004969, allocations: 4 kB / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.004976, allocations: 4 kB / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.864e-05/0.005035, allocations: 117.9 kB / 1.002 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.00504, allocations: 0 / 1.002 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.005156, allocations: 69.67 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.005159, allocations: 7.938 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.005163, allocations: 0 / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.005166, allocations: 0 / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.164e-05/0.005248, allocations: 132.8 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.005249, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.005284, allocations: 11.92 kB / 1.003 GB, free: 10.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.005286, allocations: 0 / 1.003 GB, free: 10.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.005296, allocations: 8 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.005299, allocations: 3.938 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.005301, allocations: 0 / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.005426, allocations: 105.1 kB / 1.003 GB, free: 9.965 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-06/0.005433, allocations: 0 / 1.003 GB, free: 9.965 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.005443, allocations: 0 / 1.003 GB, free: 9.965 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.143e-05/0.005475, allocations: 11.95 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.457e-05/0.005489, allocations: 0 / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.005493, allocations: 3.938 kB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.586e-05/0.005529, allocations: 91.27 kB / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005529, allocations: 0 / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001598/0.005689, allocations: 24 kB / 1.003 GB, free: 9.836 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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.0003993/0.006088, allocations: 0.6634 MB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 8.942e-05/0.006177, allocations: 31.97 kB / 1.004 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.006179, allocations: 0 / 1.004 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.42e-05/0.006194, allocations: 15.94 kB / 1.004 GB, free: 9.098 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.006315, allocations: 14.17 kB / 1.004 GB, free: 9.086 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008207/0.007136, allocations: 1.256 MB / 1.005 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.439e-05/0.00718, allocations: 67.47 kB / 1.005 GB, free: 7.652 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.889e-05/0.007199, allocations: 8 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.007233, allocations: 16.48 kB / 1.005 GB, free: 7.629 MB / 0.9636 GB Notification: Performance of SimCode: time 5.71e-07/0.007233, allocations: 0 / 1.005 GB, free: 7.629 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.02437, allocations: 2.505 MB / 1.007 GB, free: 5.262 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.209/6.234, allocations: 6.047 kB / 1.007 GB, free: 5.258 MB / 0.9636 GB " [Timeout remaining time 294] (rm -f Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.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: 10.360586896538734]