Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009817/0.009817, allocations: 103.2 kB / 15.73 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002159/0.002159, allocations: 191.4 kB / 16.67 MB, free: 5.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.506/2.506, allocations: 437 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.91 kB / 1.018 GB, free: 9.926 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9539/0.9554, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.002577/0.958, allocations: 0.5279 MB / 1.167 GB, free: 3.27 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006168/0.9586, allocations: 189.3 kB / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.875e-05/0.9587, allocations: 0 / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.9587, allocations: 7.938 kB / 1.167 GB, free: 3.078 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.772e-05/0.9588, allocations: 4 kB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.9594, allocations: 63.78 kB / 1.167 GB, free: 3.012 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.338e-05/0.9595, allocations: 8 kB / 1.167 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.52e-05/0.9596, allocations: 0 / 1.167 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.112e-05/0.9596, allocations: 7.984 kB / 1.167 GB, free: 2.996 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.956e-05/0.9596, allocations: 7.938 kB / 1.167 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.9597, allocations: 4 kB / 1.167 GB, free: 2.984 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003001/0.96, allocations: 131.8 kB / 1.167 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.96, allocations: 3.984 kB / 1.167 GB, free: 2.852 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.077e-05/0.9601, allocations: 19.92 kB / 1.167 GB, free: 2.832 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000193/0.9603, allocations: 67.77 kB / 1.167 GB, free: 2.766 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.9603, allocations: 0 / 1.167 GB, free: 2.766 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.983e-06/0.9603, allocations: 0 / 1.167 GB, free: 2.766 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.046e-06/0.9603, allocations: 4 kB / 1.167 GB, free: 2.762 MB / 0.8887 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.0004089/0.9607, allocations: 337.7 kB / 1.167 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.9608, allocations: 12.92 kB / 1.167 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.9608, allocations: 30.75 kB / 1.168 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.9609, allocations: 4.875 kB / 1.168 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.961, allocations: 172.3 kB / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-06/0.9611, allocations: 4.375 kB / 1.168 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.9611, allocations: 384 / 1.168 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.9612, allocations: 38.25 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.9612, allocations: 3.938 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.9612, allocations: 0 / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.9613, allocations: 7.984 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.008e-05/0.9613, allocations: 15.92 kB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.9615, allocations: 161.7 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.797e-05/0.9616, allocations: 26.58 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.571e-05/0.9616, allocations: 8.922 kB / 1.168 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 5.062e-05/0.9616, allocations: 11.92 kB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.9617, allocations: 30.56 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.9617, allocations: 0 / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0006703/0.9624, allocations: 310.4 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.9624, allocations: 55.34 kB / 1.168 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.768e-05/0.9625, allocations: 109.8 kB / 1.168 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.9625, allocations: 25.7 kB / 1.168 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.9626, allocations: 84.14 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.9626, allocations: 11.81 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.9627, allocations: 17.7 kB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.9628, allocations: 314.8 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.173e-05/0.9628, allocations: 16 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.568e-05/0.9629, allocations: 25.7 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.721e-05/0.9629, allocations: 37.7 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.9629, allocations: 0 / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001058/0.963, allocations: 69.62 kB / 1.169 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.9631, allocations: 11.94 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.9631, allocations: 4.062 kB / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.9631, allocations: 0 / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.096e-05/0.9632, allocations: 11.98 kB / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.361e-06/0.9632, allocations: 0 / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.652e-05/0.9632, allocations: 0 / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.9632, allocations: 0 / 1.169 GB, free: 0.543 MB / 0.8887 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 8.961e-05/0.9633, allocations: 113.8 kB / 1.169 GB, free: 432 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.9633, allocations: 11.84 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.9635, allocations: 73.58 kB / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.9635, allocations: 0 / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.9635, allocations: 0 / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.9635, allocations: 0 / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.9637, allocations: 165.7 kB / 1.169 GB, free: 116 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.9637, allocations: 7.938 kB / 1.169 GB, free: 108 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-05/0.9637, allocations: 8 kB / 1.169 GB, free: 100 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.9637, allocations: 3.938 kB / 1.169 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.9637, allocations: 0 / 1.169 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.9638, allocations: 3.938 kB / 1.169 GB, free: 92 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.9638, allocations: 3.938 kB / 1.169 GB, free: 88 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.964, allocations: 109.1 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.964, allocations: 84.95 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.964, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.333e-05/0.9641, allocations: 4.031 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-05/0.9641, allocations: 240 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.9641, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.881e-05/0.9642, allocations: 91.27 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9642, allocations: 4.062 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002297/0.9644, allocations: 16 kB / 1.17 GB, free: 15.75 MB / 0.9044 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.0005673/0.965, allocations: 0.6709 MB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001071/0.9651, allocations: 31.98 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.9652, allocations: 0 / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.657e-05/0.9652, allocations: 24.11 kB / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.9654, allocations: 1.125 kB / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.9665, allocations: 1.248 MB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.9667, allocations: 0.6807 MB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.969e-05/0.9668, allocations: 7.984 kB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.9668, allocations: 15.38 kB / 1.172 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of SimCode: time 2.01e-07/0.9668, allocations: 0 / 1.172 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02047/0.9873, allocations: 1.879 MB / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.785, allocations: 11.08 kB / 1.174 GB, free: 11.18 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=4.000000 File[237]=1.888000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:c[1],c[2],c[3],c[4],c[5],der(x),der(y),time,x,xMax,xMin,y