Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8643/0.8643, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 182.7 kB / 187.3 MB, free: 11.87 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 221.3 MB / 441.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 96.48 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002059/0.002059, allocations: 280.6 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.018e-05/4.02e-05, allocations: 4 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5544/0.5545, allocations: 82.77 MB / 0.7644 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.6889, allocations: 107.8 MB / 0.8696 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.6892, allocations: 79.94 kB / 0.8697 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001325/0.6906, allocations: 0.5496 MB / 0.8702 GB, free: 100 kB / 0.5261 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6906, allocations: 4.719 kB / 0.8703 GB, free: 96 kB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.6906, allocations: 0 / 0.8703 GB, free: 96 kB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003594/0.691, allocations: 345.1 kB / 0.8706 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.691, allocations: 12.66 kB / 0.8706 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.6911, allocations: 34.56 kB / 0.8706 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.212e-05/0.6911, allocations: 8.719 kB / 0.8706 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.6913, allocations: 163 kB / 0.8708 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.6913, allocations: 8.453 kB / 0.8708 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.6913, allocations: 0.9375 kB / 0.8708 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.6915, allocations: 53.67 kB / 0.8709 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.6915, allocations: 5.453 kB / 0.8709 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.6915, allocations: 0 / 0.8709 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.6916, allocations: 8 kB / 0.8709 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.456e-05/0.6916, allocations: 23.92 kB / 0.8709 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003993/0.692, allocations: 265.5 kB / 0.8711 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.03e-05/0.6921, allocations: 18.58 kB / 0.8712 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.808e-05/0.6921, allocations: 4.859 kB / 0.8712 GB, free: 15 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.6921, allocations: 0 / 0.8712 GB, free: 15 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.6922, allocations: 34.62 kB / 0.8712 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.6922, allocations: 0 / 0.8712 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001876/0.6924, allocations: 75.23 kB / 0.8713 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.6924, allocations: 79.33 kB / 0.8713 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.6925, allocations: 111.4 kB / 0.8715 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.6926, allocations: 25.7 kB / 0.8715 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.6926, allocations: 103.8 kB / 0.8716 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.596e-06/0.6926, allocations: 9.078 kB / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.6926, allocations: 0 / 0.8716 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6928, allocations: 318.8 kB / 0.8719 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.934e-05/0.6928, allocations: 8.031 kB / 0.8719 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.908e-05/0.6929, allocations: 62.92 kB / 0.872 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.292e-05/0.693, allocations: 49.62 kB / 0.872 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.693, allocations: 0 / 0.872 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001602/0.6932, allocations: 119.1 kB / 0.8721 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.6932, allocations: 33.95 kB / 0.8721 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.6932, allocations: 4 kB / 0.8722 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.6932, allocations: 4 kB / 0.8722 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.085e-05/0.6933, allocations: 23.92 kB / 0.8722 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.6933, allocations: 0 / 0.8722 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.832e-05/0.6934, allocations: 11.94 kB / 0.8722 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.6934, allocations: 7.953 kB / 0.8722 GB, free: 13.84 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001026/0.6935, allocations: 138.6 kB / 0.8723 GB, free: 13.69 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.6935, allocations: 3.906 kB / 0.8723 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.492e-05/0.6936, allocations: 11.59 kB / 0.8723 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.6936, allocations: 4 kB / 0.8723 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6936, allocations: 0 / 0.8723 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6936, allocations: 0 / 0.8723 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.6938, allocations: 153.6 kB / 0.8725 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6938, allocations: 0 / 0.8725 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.6938, allocations: 0 / 0.8725 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.6938, allocations: 3.984 kB / 0.8725 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-06/0.6938, allocations: 4 kB / 0.8725 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.6938, allocations: 0 / 0.8725 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.6938, allocations: 0 / 0.8725 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.694, allocations: 165.2 kB / 0.8727 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.858e-05/0.694, allocations: 81.09 kB / 0.8727 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.694, allocations: 0 / 0.8727 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.143e-05/0.6941, allocations: 8 kB / 0.8727 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.6941, allocations: 4 kB / 0.8727 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.6941, allocations: 0 / 0.8727 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.334e-05/0.6942, allocations: 93.23 kB / 0.8728 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.785e-06/0.6942, allocations: 4.031 kB / 0.8728 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002116/0.6944, allocations: 19.94 kB / 0.8729 GB, free: 13.06 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005343/0.695, allocations: 0.7023 MB / 0.8735 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001539/0.6951, allocations: 83.75 kB / 0.8736 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6951, allocations: 0 / 0.8736 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.15e-05/0.6952, allocations: 63.33 kB / 0.8737 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.6953, allocations: 0 / 0.8737 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003448/0.6957, allocations: 112.8 kB / 0.8738 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.696, allocations: 0.6821 MB / 0.8745 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.597e-05/0.6961, allocations: 16.36 kB / 0.8745 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.6961, allocations: 11.44 kB / 0.8745 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of SimCode: time 3.61e-07/0.6961, allocations: 0 / 0.8745 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0167/0.7128, allocations: 1.22 MB / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.7131, allocations: 177.5 kB / 0.8758 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.531, allocations: 1.969 kB / 0.8758 GB, free: 10.01 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)