Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",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.004674/0.004674, allocations: 101.3 kB / 15.73 MB, free: 5.59 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.001081/0.001081, allocations: 189.6 kB / 16.67 MB, free: 5.523 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002127/0.002126, allocations: 296 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8945/0.8945, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 91.86 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4097, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002511/0.4122, allocations: 1.436 MB / 0.7673 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00035/0.4126, allocations: 92.64 kB / 0.7674 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.4126, allocations: 4 kB / 0.7674 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 7.5e-05/0.4127, allocations: 3.938 kB / 0.7674 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.179e-05/0.4128, allocations: 3.938 kB / 0.7674 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.4131, allocations: 19.97 kB / 0.7674 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.676e-05/0.4132, allocations: 31.86 kB / 0.7675 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.979e-05/0.4133, allocations: 8 kB / 0.7675 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.511e-05/0.4133, allocations: 11.98 kB / 0.7675 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.458e-05/0.4134, allocations: 11.92 kB / 0.7675 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.4134, allocations: 4 kB / 0.7675 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.7e-05/0.4135, allocations: 15.98 kB / 0.7675 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.503e-05/0.4136, allocations: 4 kB / 0.7675 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.4136, allocations: 7.938 kB / 0.7675 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.4138, allocations: 46.62 kB / 0.7676 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4138, allocations: 0 / 0.7676 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4138, allocations: 4 kB / 0.7676 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.4138, allocations: 0 / 0.7676 GB, free: 2.145 MB / 0.5294 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.0004574/0.4142, allocations: 343.5 kB / 0.7679 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.4143, allocations: 11.97 kB / 0.7679 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.4143, allocations: 38.73 kB / 0.7679 GB, free: 1.699 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.445e-05/0.4144, allocations: 0.9375 kB / 0.7679 GB, free: 1.699 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.4145, allocations: 176.2 kB / 0.7681 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-06/0.4145, allocations: 384 / 0.7681 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.4145, allocations: 384 / 0.7681 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.4147, allocations: 54.23 kB / 0.7682 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.4148, allocations: 3.938 kB / 0.7682 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.4148, allocations: 3.938 kB / 0.7682 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.4148, allocations: 4 kB / 0.7682 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.4149, allocations: 39.89 kB / 0.7682 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003304/0.4153, allocations: 249 kB / 0.7685 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.4154, allocations: 46.5 kB / 0.7685 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-05/0.4155, allocations: 20.91 kB / 0.7685 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.4156, allocations: 7.984 kB / 0.7685 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.4156, allocations: 30.56 kB / 0.7686 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.4156, allocations: 3.938 kB / 0.7686 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003258/0.4159, allocations: 89.64 kB / 0.7686 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.416, allocations: 51.41 kB / 0.7687 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.186e-05/0.416, allocations: 105.8 kB / 0.7688 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.4161, allocations: 25.7 kB / 0.7688 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.4161, allocations: 92.05 kB / 0.7689 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.4161, allocations: 0 / 0.7689 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.4162, allocations: 21.84 kB / 0.7689 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.4163, allocations: 310.8 kB / 0.7692 GB, free: 228 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.195e-05/0.4164, allocations: 23.97 kB / 0.7692 GB, free: 204 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.656e-05/0.4164, allocations: 11.98 kB / 0.7693 GB, free: 192 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.4166, allocations: 52.81 kB / 0.7693 GB, free: 136 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4166, allocations: 3.938 kB / 0.7693 GB, free: 132 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001791/0.4168, allocations: 69.58 kB / 0.7694 GB, free: 56 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4168, allocations: 14.48 kB / 0.7694 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4168, allocations: 0 / 0.7694 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.4168, allocations: 0 / 0.7694 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.418e-05/0.4169, allocations: 4 kB / 0.7694 GB, free: 40 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.4169, allocations: 0 / 0.7694 GB, free: 40 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.504e-05/0.417, allocations: 12.02 kB / 0.7694 GB, free: 28 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.417, allocations: 4.25 kB / 0.7694 GB, free: 24 kB / 0.5294 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.201e-05/0.4171, allocations: 109.8 kB / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.4171, allocations: 0 / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.4173, allocations: 85.11 kB / 0.7696 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4174, allocations: 4 kB / 0.7696 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4174, allocations: 0 / 0.7696 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4174, allocations: 7.969 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.4175, allocations: 169.6 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4175, allocations: 3.938 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.4176, allocations: 8 kB / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.4176, allocations: 4 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.4176, allocations: 0 / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4176, allocations: 0 / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4176, allocations: 3.984 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.4179, allocations: 175.3 kB / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.231e-05/0.4179, allocations: 77.11 kB / 0.77 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.4179, allocations: 4 kB / 0.77 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.85e-05/0.418, allocations: 4 kB / 0.77 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.4181, allocations: 3.984 kB / 0.77 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.4181, allocations: 0 / 0.77 GB, free: 15.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.703e-05/0.4181, allocations: 87.28 kB / 0.7701 GB, free: 15.19 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4181, allocations: 4.031 kB / 0.7701 GB, free: 15.19 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002339/0.4184, allocations: 8 kB / 0.7701 GB, free: 15.18 MB / 0.545 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.0005938/0.419, allocations: 0.7045 MB / 0.7708 GB, free: 14.45 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000222/0.4192, allocations: 47.92 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4192, allocations: 4 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.496e-05/0.4193, allocations: 19.98 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.4197, allocations: 0 / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004686/0.4201, allocations: 151.2 kB / 0.771 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.4204, allocations: 0.6847 MB / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.326e-05/0.4204, allocations: 0 / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.4205, allocations: 11.44 kB / 0.7717 GB, free: 13.47 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4205, allocations: 0 / 0.7717 GB, free: 13.47 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.4374, allocations: 1.444 MB / 0.7731 GB, free: 12.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.066/7.503, allocations: 0.5625 kB / 0.7731 GB, free: 12.12 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)