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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.00519/0.00519, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.27/1.27, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 462.7 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003176, allocations: 9.125 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2511, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.0005347/0.2517, allocations: 262.9 kB / 1.059 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004126/0.2521, allocations: 199.4 kB / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.228e-05/0.2521, allocations: 0 / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.977e-05/0.2522, allocations: 0 / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.541e-05/0.2522, allocations: 4 kB / 1.059 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.2525, allocations: 43.86 kB / 1.059 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.556e-05/0.2525, allocations: 12 kB / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.2526, allocations: 4 kB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.27e-05/0.2526, allocations: 11.92 kB / 1.059 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.526e-05/0.2526, allocations: 11.92 kB / 1.059 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.118e-06/0.2526, allocations: 0 / 1.059 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.2528, allocations: 119.8 kB / 1.059 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.353e-05/0.2529, allocations: 11.97 kB / 1.059 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.2529, allocations: 33.64 kB / 1.059 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.253, allocations: 71.83 kB / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.253, allocations: 0 / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.242e-06/0.253, allocations: 0 / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.253, allocations: 0 / 1.06 GB, free: 4.176 MB / 0.8106 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.0002579/0.2533, allocations: 331.8 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2533, allocations: 11.97 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.2534, allocations: 38.75 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.2534, allocations: 4.844 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.541e-05/0.2535, allocations: 168.3 kB / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.2535, allocations: 4.312 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.2535, allocations: 384 / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.221e-05/0.2536, allocations: 38.25 kB / 1.06 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.2537, allocations: 7.938 kB / 1.06 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.2537, allocations: 4 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.2537, allocations: 0 / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.342e-05/0.2537, allocations: 11.98 kB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.2538, allocations: 161.6 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.931e-05/0.2539, allocations: 26.55 kB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.369e-05/0.2539, allocations: 16.91 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.254, allocations: 8 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.254, allocations: 34.56 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.254, allocations: 0 / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004639/0.2545, allocations: 294.2 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.2545, allocations: 55.41 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.214e-05/0.2546, allocations: 105.8 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2546, allocations: 33.92 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.184e-05/0.2546, allocations: 84.14 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.2547, allocations: 11.84 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.143e-05/0.2547, allocations: 13.7 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.2548, allocations: 314.8 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.09e-05/0.2548, allocations: 12 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.668e-05/0.2548, allocations: 29.64 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.016e-05/0.2549, allocations: 41.7 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.2549, allocations: 0 / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.462e-05/0.255, allocations: 69.53 kB / 1.061 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.255, allocations: 11.94 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.255, allocations: 4.312 kB / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.764e-06/0.255, allocations: 3.938 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.056e-05/0.2551, allocations: 7.984 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2551, allocations: 4 kB / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.2551, allocations: 8.203 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.2551, allocations: 3.984 kB / 1.061 GB, free: 1.949 MB / 0.8106 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 6.714e-05/0.2552, allocations: 109.8 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.2552, allocations: 15.86 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2553, allocations: 73.52 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.2553, allocations: 0 / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2554, allocations: 0 / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2554, allocations: 0 / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.2555, allocations: 165.7 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2555, allocations: 4 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.151e-05/0.2555, allocations: 8 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2555, allocations: 3.938 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-06/0.2555, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2555, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2555, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.2557, allocations: 112.9 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.2557, allocations: 81.05 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.2557, allocations: 4.062 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.12e-05/0.2558, allocations: 4.031 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.839e-06/0.2558, allocations: 0 / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.2558, allocations: 0 / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.071e-05/0.2559, allocations: 95.25 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2559, allocations: 0 / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000197/0.2561, allocations: 16 kB / 1.062 GB, free: 1.164 MB / 0.8106 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.000387/0.2565, allocations: 0.667 MB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.066e-05/0.2565, allocations: 31.92 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2566, allocations: 0 / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.008e-05/0.2566, allocations: 19.98 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.2567, allocations: 0 / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008869/0.2576, allocations: 1.247 MB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.2578, allocations: 0.6848 MB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.166e-05/0.2579, allocations: 4 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.2579, allocations: 15.44 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2579, allocations: 3.938 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3776/0.6355, allocations: 1.669 MB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.6357, allocations: 227.5 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.398/3.034, allocations: 0.5 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches