Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009243/0.0009243, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.441/2.441, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003989, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9364/0.9368, allocations: 142.3 MB / 0.9535 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0008095/0.9377, allocations: 322.1 kB / 0.9538 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002264/0.9379, allocations: 32.55 kB / 0.9538 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.324e-05/0.9379, allocations: 0 / 0.9538 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.234e-05/0.938, allocations: 0 / 0.9538 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.702e-06/0.938, allocations: 0 / 0.9538 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.9383, allocations: 8.781 kB / 0.9539 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.167e-05/0.9383, allocations: 3.984 kB / 0.9539 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.162e-05/0.9384, allocations: 4.828 kB / 0.9539 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.9384, allocations: 1.406 kB / 0.9539 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.667e-05/0.9385, allocations: 6.562 kB / 0.9539 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.9385, allocations: 4 kB / 0.9539 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.594e-05/0.9386, allocations: 10.3 kB / 0.9539 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.305e-06/0.9386, allocations: 3.938 kB / 0.9539 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.348e-05/0.9386, allocations: 27.05 kB / 0.9539 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.951e-05/0.9387, allocations: 12.7 kB / 0.9539 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.9387, allocations: 0 / 0.9539 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.045e-06/0.9387, allocations: 0 / 0.9539 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.9387, allocations: 0.9062 kB / 0.9539 GB, free: 7.949 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000242/0.939, allocations: 309.6 kB / 0.9542 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.939, allocations: 8.969 kB / 0.9542 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.9391, allocations: 9.266 kB / 0.9542 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.109e-05/0.9391, allocations: 163.1 kB / 0.9544 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.9392, allocations: 0 / 0.9544 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.9392, allocations: 5.156 kB / 0.9544 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.9393, allocations: 28.27 kB / 0.9544 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.9393, allocations: 0 / 0.9544 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.9393, allocations: 0 / 0.9544 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.9393, allocations: 3.984 kB / 0.9544 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.499e-05/0.9394, allocations: 6.484 kB / 0.9544 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.9395, allocations: 154.9 kB / 0.9546 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.877e-05/0.9395, allocations: 15.92 kB / 0.9546 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.9396, allocations: 6.375 kB / 0.9546 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.9396, allocations: 30.56 kB / 0.9546 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.9396, allocations: 5.312 kB / 0.9546 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.000134/0.9397, allocations: 34.61 kB / 0.9547 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.9398, allocations: 55.52 kB / 0.9547 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.294e-05/0.9398, allocations: 95.14 kB / 0.9548 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.9398, allocations: 25.7 kB / 0.9548 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.728e-05/0.9398, allocations: 80.14 kB / 0.9549 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.9399, allocations: 4.906 kB / 0.9549 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.9399, allocations: 0 / 0.9549 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.94, allocations: 316.5 kB / 0.9552 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.347e-06/0.94, allocations: 0 / 0.9552 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.672e-06/0.94, allocations: 5.5 kB / 0.9552 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.807e-05/0.94, allocations: 5.344 kB / 0.9552 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.94, allocations: 0 / 0.9552 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.695e-05/0.9401, allocations: 43.91 kB / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9401, allocations: 5.094 kB / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.9401, allocations: 0 / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.9401, allocations: 1.344 kB / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.498e-05/0.9402, allocations: 5.344 kB / 0.9553 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.9402, allocations: 0 / 0.9553 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.271e-05/0.9402, allocations: 1.25 kB / 0.9553 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.9402, allocations: 1.312 kB / 0.9553 GB, free: 6.391 MB / 0.7169 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.9403, allocations: 115.2 kB / 0.9554 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-06/0.9403, allocations: 0 / 0.9554 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.9404, allocations: 46.94 kB / 0.9554 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.9404, allocations: 0 / 0.9554 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.9404, allocations: 1.438 kB / 0.9554 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.9404, allocations: 0 / 0.9554 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.11e-05/0.9405, allocations: 155 kB / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.9405, allocations: 0 / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.664e-05/0.9406, allocations: 2.344 kB / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.9406, allocations: 0 / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.9406, allocations: 1.594 kB / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.9406, allocations: 0 / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.9406, allocations: 0 / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.216e-05/0.9406, allocations: 67.02 kB / 0.9557 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.9407, allocations: 82.45 kB / 0.9557 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.9407, allocations: 0 / 0.9557 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.9407, allocations: 1.156 kB / 0.9557 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.9407, allocations: 1.25 kB / 0.9557 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.9407, allocations: 1.281 kB / 0.9557 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.628e-05/0.9408, allocations: 75.28 kB / 0.9558 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9408, allocations: 0 / 0.9558 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002279/0.941, allocations: 8.312 kB / 0.9558 GB, free: 5.77 MB / 0.7169 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001645/0.9412, allocations: 111.9 kB / 0.9559 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.732e-05/0.9412, allocations: 4.375 kB / 0.9559 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.9413, allocations: 0 / 0.9559 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.353e-06/0.9413, allocations: 2.375 kB / 0.9559 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.681e-05/0.9414, allocations: 10.2 kB / 0.9559 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001745/0.9415, allocations: 77.91 kB / 0.956 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.9417, allocations: 0.6758 MB / 0.9567 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.499e-05/0.9417, allocations: 6.438 kB / 0.9567 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.04e-05/0.9418, allocations: 8.5 kB / 0.9567 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.9418, allocations: 0 / 0.9567 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of Templates: time 0.002499/0.9443, allocations: 278.7 kB / 0.957 GB, free: 4.707 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches