Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 106.4 kB / 16.27 MB, free: 5.977 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.00182/0.00182, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.416/2.416, allocations: 390.3 MB / 0.6653 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 63.14 kB / 0.8132 GB, free: 33.03 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3265, allocations: 140.4 MB / 0.9503 GB, free: 8.91 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.003689/0.3302, allocations: 1.435 MB / 0.9517 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003781/0.3306, allocations: 102.6 kB / 0.9518 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.164e-05/0.3307, allocations: 0 / 0.9518 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.377e-05/0.3308, allocations: 0 / 0.9518 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.218e-05/0.3309, allocations: 3.938 kB / 0.9518 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.3312, allocations: 19.92 kB / 0.9518 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.262e-05/0.3313, allocations: 23.92 kB / 0.9518 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3314, allocations: 11.97 kB / 0.9518 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.514e-05/0.3315, allocations: 12 kB / 0.9518 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.266e-05/0.3315, allocations: 15.92 kB / 0.9518 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.3315, allocations: 0 / 0.9518 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.3317, allocations: 19.98 kB / 0.9519 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.274e-05/0.3317, allocations: 4 kB / 0.9519 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.242e-05/0.3318, allocations: 15.86 kB / 0.9519 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.3319, allocations: 27.95 kB / 0.9519 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3319, allocations: 4 kB / 0.9519 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.593e-06/0.332, allocations: 0 / 0.9519 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.115e-05/0.332, allocations: 0 / 0.9519 GB, free: 7.207 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005566/0.3325, allocations: 351.7 kB / 0.9522 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3326, allocations: 12.03 kB / 0.9523 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.3326, allocations: 8.781 kB / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.3328, allocations: 164.4 kB / 0.9524 GB, free: 6.594 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.3328, allocations: 4.375 kB / 0.9524 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.3329, allocations: 4.312 kB / 0.9524 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.3331, allocations: 50.23 kB / 0.9525 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.3331, allocations: 192 / 0.9525 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3331, allocations: 15.88 kB / 0.9525 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.3331, allocations: 0 / 0.9525 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.3333, allocations: 35.95 kB / 0.9525 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/0.3337, allocations: 249 kB / 0.9528 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.3339, allocations: 50.42 kB / 0.9528 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.859e-05/0.334, allocations: 28.91 kB / 0.9528 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.612e-05/0.3341, allocations: 3.984 kB / 0.9528 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3341, allocations: 34.56 kB / 0.9529 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.3341, allocations: 4 kB / 0.9529 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003946/0.3345, allocations: 89.64 kB / 0.953 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.3346, allocations: 55.41 kB / 0.953 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3347, allocations: 109.8 kB / 0.9531 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3347, allocations: 25.7 kB / 0.9531 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.3348, allocations: 84.14 kB / 0.9532 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.3348, allocations: 3.906 kB / 0.9532 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.3349, allocations: 17.72 kB / 0.9532 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.335, allocations: 314.8 kB / 0.9535 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.974e-05/0.3351, allocations: 24.02 kB / 0.9536 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.68e-05/0.3352, allocations: 15.98 kB / 0.9536 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.3354, allocations: 40.81 kB / 0.9536 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3354, allocations: 0 / 0.9536 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002255/0.3356, allocations: 77.66 kB / 0.9537 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3356, allocations: 9.875 kB / 0.9537 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.3356, allocations: 0 / 0.9537 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.3357, allocations: 0 / 0.9537 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.701e-05/0.3358, allocations: 7.938 kB / 0.9537 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3358, allocations: 7.984 kB / 0.9537 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.263e-05/0.3358, allocations: 11.92 kB / 0.9537 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.3359, allocations: 0 / 0.9537 GB, free: 5.109 MB / 0.7325 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 (2): * Single equations (assignments): 2 * 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.703e-05/0.3359, allocations: 115.8 kB / 0.9538 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.336, allocations: 11.84 kB / 0.9539 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.3363, allocations: 77.17 kB / 0.9539 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3363, allocations: 0 / 0.9539 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3363, allocations: 0 / 0.9539 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3363, allocations: 0 / 0.9539 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.3365, allocations: 165.6 kB / 0.9541 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.3365, allocations: 0 / 0.9541 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/0.3366, allocations: 12.03 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3366, allocations: 3.938 kB / 0.9541 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3366, allocations: 4 kB / 0.9541 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3366, allocations: 3.984 kB / 0.9541 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3366, allocations: 0 / 0.9541 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.3369, allocations: 167.4 kB / 0.9543 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.172e-05/0.3369, allocations: 81.39 kB / 0.9543 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.3369, allocations: 0 / 0.9543 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.783e-05/0.337, allocations: 15.98 kB / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.3371, allocations: 0 / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3371, allocations: 4 kB / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.678e-05/0.3371, allocations: 79.28 kB / 0.9544 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3371, allocations: 0 / 0.9544 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002493/0.3374, allocations: 12 kB / 0.9545 GB, free: 4.27 MB / 0.7325 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 (2): * Single equations (assignments): 2 * 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.0001808/0.3376, allocations: 107.2 kB / 0.9546 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.3378, allocations: 39.91 kB / 0.9546 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3378, allocations: 0 / 0.9546 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.191e-05/0.3379, allocations: 23.97 kB / 0.9546 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3382, allocations: 7.938 kB / 0.9546 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003846/0.3386, allocations: 139.3 kB / 0.9548 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.339, allocations: 0.6844 MB / 0.9554 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.961e-05/0.339, allocations: 11.44 kB / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.339, allocations: 0 / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of Templates: time 0.002526/0.3415, allocations: 0.662 MB / 0.9561 GB, free: 2.535 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches