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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008544/0.008544, allocations: 99.27 kB / 15.73 MB, free: 6.012 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.001912/0.001912, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002212/0.002212, allocations: 284.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9308/0.9308, allocations: 169.3 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 95.86 kB / 0.681 GB, free: 7.434 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4427/0.4445, allocations: 86.97 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001806/0.4463, allocations: 0.5893 MB / 0.7665 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002531/0.4466, allocations: 35.92 kB / 0.7665 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.4466, allocations: 3.938 kB / 0.7666 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.616e-05/0.4467, allocations: 4 kB / 0.7666 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.5e-05/0.4467, allocations: 4 kB / 0.7666 GB, free: 3.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.4469, allocations: 11.98 kB / 0.7666 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.528e-05/0.447, allocations: 4 kB / 0.7666 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.523e-05/0.447, allocations: 0 / 0.7666 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.908e-05/0.4471, allocations: 4 kB / 0.7666 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.671e-05/0.4471, allocations: 3.938 kB / 0.7666 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.4471, allocations: 0 / 0.7666 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.511e-05/0.4472, allocations: 23.98 kB / 0.7666 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.929e-05/0.4472, allocations: 7.984 kB / 0.7666 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/0.4473, allocations: 7.922 kB / 0.7666 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.831e-05/0.4474, allocations: 23.72 kB / 0.7666 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4474, allocations: 8 kB / 0.7666 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4474, allocations: 3.938 kB / 0.7667 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.4474, allocations: 0 / 0.7667 GB, free: 3.129 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000308/0.4477, allocations: 348.8 kB / 0.767 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.4477, allocations: 8.031 kB / 0.767 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.4478, allocations: 34.75 kB / 0.767 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.4478, allocations: 4.891 kB / 0.767 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.091e-05/0.4479, allocations: 166 kB / 0.7672 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.4479, allocations: 4.359 kB / 0.7672 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.4479, allocations: 8.375 kB / 0.7672 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.4481, allocations: 54.25 kB / 0.7673 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4481, allocations: 3.938 kB / 0.7673 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4481, allocations: 7.984 kB / 0.7673 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.67e-05/0.4481, allocations: 4 kB / 0.7673 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.348e-05/0.4482, allocations: 27.92 kB / 0.7673 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000303/0.4485, allocations: 268.8 kB / 0.7676 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.255e-05/0.4485, allocations: 18.58 kB / 0.7676 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.4486, allocations: 8.922 kB / 0.7676 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.4486, allocations: 0 / 0.7676 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.4486, allocations: 34.56 kB / 0.7676 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 3.637e-06/0.4486, allocations: 3.984 kB / 0.7676 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.4488, allocations: 71.33 kB / 0.7677 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.4488, allocations: 77.11 kB / 0.7678 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.4489, allocations: 118 kB / 0.7679 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.449, allocations: 25.7 kB / 0.7679 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.449, allocations: 107.9 kB / 0.768 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 8.697e-06/0.449, allocations: 4 kB / 0.768 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.4491, allocations: 25.67 kB / 0.768 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.4492, allocations: 322.8 kB / 0.7683 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.557e-05/0.4492, allocations: 4 kB / 0.7683 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.957e-05/0.4493, allocations: 66.8 kB / 0.7684 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.4494, allocations: 126.2 kB / 0.7685 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4494, allocations: 4 kB / 0.7685 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001448/0.4496, allocations: 123.1 kB / 0.7686 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.4496, allocations: 29.95 kB / 0.7687 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4496, allocations: 11.98 kB / 0.7687 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.4497, allocations: 0 / 0.7687 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.4497, allocations: 19.94 kB / 0.7687 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.4498, allocations: 4.469 kB / 0.7687 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.857e-05/0.4498, allocations: 7.953 kB / 0.7687 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.4498, allocations: 7.938 kB / 0.7687 GB, free: 0.6914 MB / 0.5294 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.303e-05/0.4499, allocations: 145.9 kB / 0.7689 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.437e-05/0.45, allocations: 4 kB / 0.7689 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.32e-05/0.45, allocations: 7.531 kB / 0.7689 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.45, allocations: 0 / 0.7689 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.45, allocations: 4 kB / 0.7689 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.45, allocations: 0 / 0.7689 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.4502, allocations: 161.5 kB / 0.769 GB, free: 320 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.4502, allocations: 0 / 0.769 GB, free: 320 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.4502, allocations: 3.938 kB / 0.769 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4502, allocations: 0 / 0.769 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.4502, allocations: 0 / 0.769 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4502, allocations: 0 / 0.769 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4502, allocations: 7.938 kB / 0.769 GB, free: 308 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.4504, allocations: 173.2 kB / 0.7692 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.4504, allocations: 81.06 kB / 0.7693 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.4504, allocations: 3.984 kB / 0.7693 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.433e-05/0.4505, allocations: 0 / 0.7693 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.4505, allocations: 4 kB / 0.7693 GB, free: 4 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.4505, allocations: 0 / 0.7693 GB, free: 4 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001093/0.4506, allocations: 103.2 kB / 0.7694 GB, free: 15.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.8e-07/0.4507, allocations: 4.031 kB / 0.7694 GB, free: 15.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000326/0.451, allocations: 12 kB / 0.7694 GB, free: 15.89 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004243/0.4514, allocations: 0.6985 MB / 0.7701 GB, free: 15.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001311/0.4516, allocations: 87.61 kB / 0.7702 GB, free: 15.06 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.4516, allocations: 0 / 0.7702 GB, free: 15.06 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.058e-05/0.4516, allocations: 59.41 kB / 0.7702 GB, free: 14.99 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001962/0.4518, allocations: 2.75 kB / 0.7702 GB, free: 14.99 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.4522, allocations: 142.5 kB / 0.7704 GB, free: 14.81 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.4524, allocations: 0.6807 MB / 0.771 GB, free: 14.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.671e-05/0.4525, allocations: 16.05 kB / 0.771 GB, free: 14.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.396e-05/0.4526, allocations: 18.5 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.4526, allocations: 0 / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.4698, allocations: 1.45 MB / 0.7725 GB, free: 12.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.267/7.737, allocations: 13.48 kB / 0.7725 GB, free: 12.77 MB / 0.545 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)