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.00502/0.00502, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.001391/0.001392, allocations: 197.7 kB / 16.68 MB, free: 6.348 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002584/0.002584, allocations: 286.7 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5074 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004353/0.004353, allocations: 96.62 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5719/0.5763, allocations: 89.13 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001859/0.5782, allocations: 0.5921 MB / 0.782 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002671/0.5785, allocations: 41 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.247e-05/0.5785, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.5786, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.699e-05/0.5786, allocations: 7.5 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.5788, allocations: 11.14 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.736e-05/0.5789, allocations: 10.84 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.579, allocations: 3.562 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.023e-05/0.579, allocations: 2.625 kB / 0.782 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.697e-05/0.5791, allocations: 8.484 kB / 0.782 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.5791, allocations: 0 / 0.782 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.895e-05/0.5792, allocations: 18.16 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.5792, allocations: 6.094 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.5793, allocations: 5.562 kB / 0.7821 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.5794, allocations: 31.55 kB / 0.7821 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.5794, allocations: 0 / 0.7821 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.874e-06/0.5794, allocations: 3.938 kB / 0.7821 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.5794, allocations: 0 / 0.7821 GB, free: 13.41 MB / 0.5606 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.0004169/0.5798, allocations: 346.6 kB / 0.7824 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.5799, allocations: 10.88 kB / 0.7824 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.663e-05/0.5799, allocations: 36.25 kB / 0.7825 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.58, allocations: 6.703 kB / 0.7825 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.5801, allocations: 161.7 kB / 0.7826 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.5801, allocations: 11.61 kB / 0.7827 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.5801, allocations: 8.297 kB / 0.7827 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.5803, allocations: 57.22 kB / 0.7827 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.5803, allocations: 3.938 kB / 0.7827 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.5803, allocations: 0 / 0.7827 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/0.5803, allocations: 6.312 kB / 0.7827 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.355e-05/0.5804, allocations: 22.22 kB / 0.7827 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003758/0.5808, allocations: 265.4 kB / 0.783 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.852e-05/0.5808, allocations: 26.12 kB / 0.783 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.861e-05/0.5809, allocations: 8.406 kB / 0.783 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-06/0.5809, allocations: 0 / 0.783 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.5809, allocations: 32.8 kB / 0.7831 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.5809, allocations: 0 / 0.7831 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.5811, allocations: 66.92 kB / 0.7831 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.5812, allocations: 79.27 kB / 0.7832 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.711e-05/0.5813, allocations: 122.9 kB / 0.7833 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.5813, allocations: 26.86 kB / 0.7833 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.5814, allocations: 104.6 kB / 0.7834 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.736e-06/0.5814, allocations: 5.891 kB / 0.7834 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.5814, allocations: 27.61 kB / 0.7835 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5816, allocations: 321.4 kB / 0.7838 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.824e-05/0.5816, allocations: 8.281 kB / 0.7838 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.414e-05/0.5817, allocations: 65 kB / 0.7839 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.5819, allocations: 132.4 kB / 0.784 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5819, allocations: 5.469 kB / 0.784 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001709/0.582, allocations: 112.2 kB / 0.7841 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.5821, allocations: 41.12 kB / 0.7841 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.5821, allocations: 5.188 kB / 0.7841 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.5821, allocations: 3.625 kB / 0.7841 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.465e-05/0.5822, allocations: 10.98 kB / 0.7841 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.5822, allocations: 4.328 kB / 0.7842 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.376e-05/0.5823, allocations: 12.06 kB / 0.7842 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.5823, allocations: 9.531 kB / 0.7842 GB, free: 11.25 MB / 0.5606 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 0.0001076/0.5824, allocations: 143.1 kB / 0.7843 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.5824, allocations: 2.344 kB / 0.7843 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.319e-05/0.5825, allocations: 18.53 kB / 0.7843 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.5825, allocations: 0 / 0.7843 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5825, allocations: 0 / 0.7843 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.5825, allocations: 1.312 kB / 0.7843 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.5827, allocations: 152.8 kB / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.5827, allocations: 0.9688 kB / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.5827, allocations: 0 / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.5827, allocations: 1.594 kB / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.5827, allocations: 1.156 kB / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5827, allocations: 0 / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5827, allocations: 2.125 kB / 0.7845 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.5829, allocations: 172.3 kB / 0.7846 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.5829, allocations: 81.77 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.5829, allocations: 1.984 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/0.583, allocations: 1.438 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/0.583, allocations: 6.156 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.583, allocations: 5.406 kB / 0.7847 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.378e-05/0.5831, allocations: 94.94 kB / 0.7848 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5831, allocations: 0 / 0.7848 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002456/0.5834, allocations: 13.22 kB / 0.7848 GB, free: 10.53 MB / 0.5606 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.000528/0.5839, allocations: 0.7007 MB / 0.7855 GB, free: 9.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001429/0.584, allocations: 87.19 kB / 0.7856 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5841, allocations: 1.25 kB / 0.7856 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.176e-05/0.5841, allocations: 61.05 kB / 0.7857 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.5843, allocations: 9.953 kB / 0.7857 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.5847, allocations: 132.8 kB / 0.7858 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.585, allocations: 0.6788 MB / 0.7865 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001226/0.5852, allocations: 20.08 kB / 0.7865 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.865e-05/0.5852, allocations: 12.84 kB / 0.7865 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.5852, allocations: 0 / 0.7865 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.6089, allocations: 1.461 MB / 0.7879 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.806/8.415, allocations: 4.875 kB / 0.7879 GB, free: 8.473 MB / 0.5606 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)