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.8655/0.8655, allocations: 141.8 MB / 149.3 MB, free: 9.23 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 188.8 kB / 182.2 MB, free: 9.426 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.671/1.671, allocations: 221.5 MB / 436.4 MB, free: 13.26 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.0009653/0.0009653, allocations: 88.11 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001877/0.001877, allocations: 277.9 kB / 0.5889 GB, free: 54.63 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.378e-05/2.406e-05, allocations: 8 kB / 0.6766 GB, free: 12.69 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4711/0.4711, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.6208, allocations: 107.1 MB / 0.8621 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.6211, allocations: 75.95 kB / 0.8622 GB, free: 4.543 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001572/0.6227, allocations: 0.558 MB / 0.8627 GB, free: 3.984 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.355e-06/0.6227, allocations: 0 / 0.8627 GB, free: 3.984 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.6228, allocations: 0 / 0.8627 GB, free: 3.984 MB / 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.0003464/0.6231, allocations: 348.3 kB / 0.863 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.6232, allocations: 11.97 kB / 0.8631 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.6232, allocations: 0 / 0.8631 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.6233, allocations: 167 kB / 0.8632 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.6234, allocations: 11.94 kB / 0.8632 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.6234, allocations: 0 / 0.8632 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.675e-05/0.6235, allocations: 19.94 kB / 0.8632 GB, free: 3.348 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.6236, allocations: 53.69 kB / 0.8633 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.6236, allocations: 4 kB / 0.8633 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.6236, allocations: 0 / 0.8633 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.6237, allocations: 7.984 kB / 0.8633 GB, free: 3.277 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003664/0.624, allocations: 241.4 kB / 0.8635 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.306e-05/0.6241, allocations: 14.58 kB / 0.8636 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.143e-05/0.6241, allocations: 12.91 kB / 0.8636 GB, free: 2.965 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-06/0.6241, allocations: 0 / 0.8636 GB, free: 2.965 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.6242, allocations: 34.5 kB / 0.8636 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.6242, allocations: 0 / 0.8636 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 0.0001928/0.6244, allocations: 41.61 kB / 0.8636 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.6244, allocations: 81.14 kB / 0.8637 GB, free: 2.777 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.6245, allocations: 107.2 kB / 0.8638 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.6246, allocations: 25.7 kB / 0.8638 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.6246, allocations: 107.8 kB / 0.8639 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.522e-06/0.6247, allocations: 0 / 0.8639 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.6247, allocations: 0 / 0.8639 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.6248, allocations: 314.8 kB / 0.8642 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.037e-05/0.6248, allocations: 12 kB / 0.8643 GB, free: 2.199 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-05/0.6249, allocations: 66.86 kB / 0.8643 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.095e-05/0.625, allocations: 15.98 kB / 0.8643 GB, free: 2.094 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.625, allocations: 7.938 kB / 0.8643 GB, free: 2.086 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001511/0.6251, allocations: 81.45 kB / 0.8644 GB, free: 2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.6252, allocations: 33.7 kB / 0.8645 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.6252, allocations: 0 / 0.8645 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.6252, allocations: 4 kB / 0.8645 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.553e-05/0.6253, allocations: 15.94 kB / 0.8645 GB, free: 1.941 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.6253, allocations: 8.234 kB / 0.8645 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.709e-05/0.6254, allocations: 11.94 kB / 0.8645 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.6254, allocations: 4 kB / 0.8645 GB, free: 1.918 MB / 0.5261 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 9.633e-05/0.6255, allocations: 134.6 kB / 0.8646 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001095/0.6256, allocations: 49.53 kB / 0.8647 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.6257, allocations: 0 / 0.8647 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.141e-05/0.6257, allocations: 7.969 kB / 0.8647 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6257, allocations: 4 kB / 0.8647 GB, free: 1.703 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6257, allocations: 0 / 0.8647 GB, free: 1.703 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.6257, allocations: 7.969 kB / 0.8647 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.6259, allocations: 134.2 kB / 0.8648 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.6259, allocations: 0 / 0.8648 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.294e-06/0.6259, allocations: 4 kB / 0.8648 GB, free: 1.523 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.6259, allocations: 0 / 0.8648 GB, free: 1.523 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.6259, allocations: 0 / 0.8648 GB, free: 1.523 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.6259, allocations: 4 kB / 0.8648 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6259, allocations: 0 / 0.8648 GB, free: 1.52 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.6261, allocations: 139.5 kB / 0.865 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.6261, allocations: 81.02 kB / 0.865 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.6261, allocations: 4 kB / 0.865 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.263e-05/0.6262, allocations: 0 / 0.865 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.986e-05/0.6262, allocations: 0 / 0.865 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.6262, allocations: 4 kB / 0.865 GB, free: 1.262 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 5.794e-05/0.6263, allocations: 95.02 kB / 0.8651 GB, free: 1.172 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6263, allocations: 3.938 kB / 0.8651 GB, free: 1.168 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002478/0.6266, allocations: 8 kB / 0.8651 GB, free: 1.16 MB / 0.5261 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.0004963/0.6271, allocations: 0.6734 MB / 0.8658 GB, free: 472 kB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001367/0.6272, allocations: 83.33 kB / 0.8659 GB, free: 376 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6272, allocations: 3.938 kB / 0.8659 GB, free: 372 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.6273, allocations: 55.94 kB / 0.8659 GB, free: 304 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.6274, allocations: 4.062 kB / 0.8659 GB, free: 300 kB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.6278, allocations: 105.5 kB / 0.866 GB, free: 156 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.6281, allocations: 0.6846 MB / 0.8667 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.427e-05/0.6282, allocations: 8.172 kB / 0.8667 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.6282, allocations: 15.38 kB / 0.8667 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.6282, allocations: 0 / 0.8667 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.6507, allocations: 0.9213 MB / 0.8676 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.6509, allocations: 172.1 kB / 0.8678 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.325, allocations: 0 / 0.8678 GB, free: 14.3 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)