Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001545/0.001545, allocations: 107.7 kB / 16.45 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.001572/0.001572, 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.423/1.423, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.087/3.087, allocations: 0.49 GB / 0.7916 GB, free: 33.26 MB / 0.6231 GB " [Timeout remaining time 177] 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.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",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.002002/0.002002, allocations: 67.67 kB / 1.149 GB, free: 26.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3467, allocations: 176.1 MB / 1.321 GB, free: 3.293 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.00175/0.3484, allocations: 0.5201 MB / 1.321 GB, free: 2.773 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0005325/0.349, allocations: 195.8 kB / 1.321 GB, free: 2.582 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.902e-05/0.349, allocations: 4 kB / 1.321 GB, free: 2.578 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.511e-05/0.349, allocations: 0 / 1.321 GB, free: 2.578 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.297e-05/0.3491, allocations: 0 / 1.321 GB, free: 2.578 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.3495, allocations: 67.78 kB / 1.322 GB, free: 2.512 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 5.234e-05/0.3495, allocations: 4 kB / 1.322 GB, free: 2.508 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.3496, allocations: 7.984 kB / 1.322 GB, free: 2.5 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.333e-05/0.3496, allocations: 11.94 kB / 1.322 GB, free: 2.488 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.618e-05/0.3496, allocations: 0 / 1.322 GB, free: 2.488 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.3497, allocations: 0 / 1.322 GB, free: 2.488 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.3499, allocations: 135.8 kB / 1.322 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.3499, allocations: 11.98 kB / 1.322 GB, free: 2.344 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.35, allocations: 15.86 kB / 1.322 GB, free: 2.328 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.3501, allocations: 68.12 kB / 1.322 GB, free: 2.262 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3502, allocations: 3.984 kB / 1.322 GB, free: 2.258 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3502, allocations: 0 / 1.322 GB, free: 2.258 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.3502, allocations: 0 / 1.322 GB, free: 2.258 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005316/0.3507, allocations: 343.3 kB / 1.322 GB, free: 1.871 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3507, allocations: 15.98 kB / 1.322 GB, free: 1.855 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.3508, allocations: 30.75 kB / 1.322 GB, free: 1.816 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.3508, allocations: 4.891 kB / 1.322 GB, free: 1.812 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.351, allocations: 168.4 kB / 1.322 GB, free: 1.609 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.351, allocations: 384 / 1.322 GB, free: 1.609 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.351, allocations: 12.23 kB / 1.322 GB, free: 1.598 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.3511, allocations: 42.25 kB / 1.322 GB, free: 1.551 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3511, allocations: 3.938 kB / 1.322 GB, free: 1.547 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3511, allocations: 0 / 1.322 GB, free: 1.547 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3511, allocations: 4 kB / 1.322 GB, free: 1.543 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.245e-05/0.3512, allocations: 11.98 kB / 1.322 GB, free: 1.531 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002104/0.3514, allocations: 165.7 kB / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.096e-05/0.3514, allocations: 22.58 kB / 1.323 GB, free: 1.289 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.739e-05/0.3515, allocations: 16.86 kB / 1.323 GB, free: 1.27 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.3515, allocations: 7.984 kB / 1.323 GB, free: 1.262 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.3516, allocations: 30.56 kB / 1.323 GB, free: 1.223 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3516, allocations: 0 / 1.323 GB, free: 1.223 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0006542/0.3522, allocations: 306.4 kB / 1.323 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.3523, allocations: 55.41 kB / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3524, allocations: 105.8 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.3524, allocations: 29.7 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.3524, allocations: 80.14 kB / 1.323 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.3525, allocations: 11.91 kB / 1.323 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.3525, allocations: 17.7 kB / 1.323 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002152/0.3527, allocations: 322.9 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.362e-05/0.3527, allocations: 8 kB / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.782e-05/0.3528, allocations: 29.7 kB / 1.324 GB, free: 176 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.014e-05/0.3528, allocations: 41.64 kB / 1.324 GB, free: 128 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.3528, allocations: 0 / 1.324 GB, free: 128 kB / 1.014 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001195/0.353, allocations: 65.72 kB / 1.324 GB, free: 56 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.353, allocations: 11.88 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.353, allocations: 4 kB / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.353, allocations: 0 / 1.324 GB, free: 40 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.258e-05/0.3531, allocations: 11.92 kB / 1.324 GB, free: 28 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.443e-06/0.3531, allocations: 4 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.3531, allocations: 0 / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3531, allocations: 0 / 1.324 GB, free: 24 kB / 1.014 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 0.0001047/0.3532, allocations: 113.8 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.3532, allocations: 3.938 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.3534, allocations: 81.81 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3534, allocations: 0 / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3534, allocations: 0 / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3534, allocations: 0 / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.3536, allocations: 165.7 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3536, allocations: 4 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.3536, allocations: 8 kB / 1.324 GB, free: 15.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3536, allocations: 3.938 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.3536, allocations: 3.938 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3536, allocations: 0 / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3536, allocations: 4 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.3538, allocations: 109.3 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.751e-05/0.3539, allocations: 85.05 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.3539, allocations: 0 / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.78e-05/0.354, allocations: 0 / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.354, allocations: 4.031 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.354, allocations: 3.938 kB / 1.324 GB, free: 15.33 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.056e-05/0.354, allocations: 103.3 kB / 1.324 GB, free: 15.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.354, allocations: 0 / 1.324 GB, free: 15.23 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002149/0.3543, allocations: 19.94 kB / 1.324 GB, free: 15.21 MB / 1.029 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.0005507/0.3548, allocations: 0.6553 MB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 9.876e-05/0.3549, allocations: 36.05 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3549, allocations: 4.062 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.211e-05/0.3549, allocations: 11.98 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3551, allocations: 9.547 kB / 1.325 GB, free: 14.47 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.3563, allocations: 1.24 MB / 1.326 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.3567, allocations: 0.6807 MB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.547e-05/0.3567, allocations: 4 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.3568, allocations: 19.42 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3568, allocations: 4 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.3834, allocations: 1.884 MB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/7.835, allocations: 4.531 kB / 1.329 GB, free: 10.66 MB / 1.029 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 14.311748815933242]