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.005306/0.005305, allocations: 100.5 kB / 15.73 MB, free: 6.469 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.001253/0.001253, allocations: 196.7 kB / 16.67 MB, free: 6.379 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002109/0.002109, allocations: 279.1 kB / 290.8 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8926/0.8926, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 103.9 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1553, allocations: 86.97 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001604/0.157, allocations: 0.58 MB / 0.7665 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002248/0.1572, allocations: 39.88 kB / 0.7665 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.741e-05/0.1572, allocations: 4 kB / 0.7665 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.68e-05/0.1573, allocations: 3.938 kB / 0.7666 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.22e-05/0.1573, allocations: 0 / 0.7666 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.1575, allocations: 7.984 kB / 0.7666 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.284e-05/0.1576, allocations: 8 kB / 0.7666 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.1576, allocations: 3.938 kB / 0.7666 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.863e-05/0.1577, allocations: 4 kB / 0.7666 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.723e-05/0.1577, allocations: 0 / 0.7666 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1577, allocations: 4 kB / 0.7666 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.275e-05/0.1578, allocations: 19.97 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.214e-05/0.1578, allocations: 11.98 kB / 0.7666 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.246e-05/0.1579, allocations: 3.938 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 9.871e-05/0.158, allocations: 27.92 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.158, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.213e-06/0.158, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.158, allocations: 3.938 kB / 0.7666 GB, free: 8.199 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.0003632/0.1584, allocations: 353.4 kB / 0.767 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1584, allocations: 8.031 kB / 0.767 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.105e-05/0.1584, allocations: 46.69 kB / 0.767 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.554e-05/0.1585, allocations: 4.922 kB / 0.767 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.478e-05/0.1586, allocations: 160.4 kB / 0.7672 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.1586, allocations: 384 / 0.7672 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.1586, allocations: 4.375 kB / 0.7672 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.1587, allocations: 58.23 kB / 0.7673 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1587, allocations: 3.938 kB / 0.7673 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.1587, allocations: 0 / 0.7673 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.1588, allocations: 4 kB / 0.7673 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.788e-05/0.1588, allocations: 31.91 kB / 0.7673 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003049/0.1591, allocations: 272.8 kB / 0.7675 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.939e-05/0.1592, allocations: 14.58 kB / 0.7676 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.1592, allocations: 8.922 kB / 0.7676 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-06/0.1592, allocations: 0 / 0.7676 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.1593, allocations: 34.55 kB / 0.7676 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 2.124e-06/0.1593, allocations: 4 kB / 0.7676 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.1594, allocations: 71.34 kB / 0.7677 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.1595, allocations: 77.11 kB / 0.7678 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.889e-05/0.1596, allocations: 113.8 kB / 0.7679 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.1596, allocations: 29.64 kB / 0.7679 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.971e-05/0.1596, allocations: 103.8 kB / 0.768 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.904e-06/0.1597, allocations: 3.906 kB / 0.768 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.1597, allocations: 25.7 kB / 0.768 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1598, allocations: 326.9 kB / 0.7683 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.479e-05/0.1598, allocations: 11.98 kB / 0.7683 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.229e-05/0.1599, allocations: 58.94 kB / 0.7684 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.16, allocations: 134.1 kB / 0.7685 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.16, allocations: 0 / 0.7685 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001596/0.1602, allocations: 127.2 kB / 0.7686 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1602, allocations: 29.7 kB / 0.7687 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.1602, allocations: 4 kB / 0.7687 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1603, allocations: 4 kB / 0.7687 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.258e-05/0.1603, allocations: 8 kB / 0.7687 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1603, allocations: 7.938 kB / 0.7687 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.1604, allocations: 15.84 kB / 0.7687 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.1604, allocations: 12.17 kB / 0.7687 GB, free: 5.746 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.000137/0.1606, allocations: 144.2 kB / 0.7689 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.1606, allocations: 0 / 0.7689 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.229e-05/0.1606, allocations: 7.531 kB / 0.7689 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1606, allocations: 7.938 kB / 0.7689 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1606, allocations: 0 / 0.7689 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1606, allocations: 3.984 kB / 0.7689 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.1608, allocations: 149.6 kB / 0.769 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1608, allocations: 0 / 0.769 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.1608, allocations: 3.984 kB / 0.769 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1608, allocations: 4 kB / 0.769 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.1608, allocations: 0 / 0.769 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1608, allocations: 4 kB / 0.769 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1608, allocations: 0 / 0.769 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.161, allocations: 173 kB / 0.7692 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.161, allocations: 77.11 kB / 0.7693 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.161, allocations: 0 / 0.7693 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.729e-05/0.1611, allocations: 4 kB / 0.7693 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.197e-05/0.1611, allocations: 8.031 kB / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.1611, allocations: 0 / 0.7693 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.357e-05/0.1612, allocations: 95.14 kB / 0.7694 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1612, allocations: 0 / 0.7694 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002497/0.1614, allocations: 16 kB / 0.7694 GB, free: 4.957 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.0003906/0.1618, allocations: 0.7024 MB / 0.7701 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.162, allocations: 83.33 kB / 0.7702 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.162, allocations: 0 / 0.7702 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.058e-05/0.162, allocations: 59.39 kB / 0.7702 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.1622, allocations: 4 kB / 0.7702 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.1626, allocations: 139.1 kB / 0.7703 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.1629, allocations: 0.6846 MB / 0.771 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.878e-05/0.163, allocations: 15.72 kB / 0.771 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/0.1631, allocations: 15.44 kB / 0.771 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of SimCode: time 2.11e-07/0.1631, allocations: 0 / 0.771 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.1821, allocations: 1.465 MB / 0.7725 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/7.18, allocations: 18.05 kB / 0.7725 GB, free: 1.812 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 & /home/hudson/saved_omc/OMSimulator/install/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)