Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.000806/0.000806, allocations: 92.95 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008659/0.000866, allocations: 181.9 kB / 16.91 MB, free: 6.914 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.346/1.346, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6919/0.6919, allocations: 115.5 MB / 407.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003012, allocations: 8 kB / 496 MB, free: 6.277 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1382, allocations: 77.54 MB / 0.5601 GB, free: 8.938 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001636/0.1399, allocations: 1.177 MB / 0.5612 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.141, allocations: 0.6308 MB / 0.5618 GB, free: 7.117 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.1411, allocations: 0 / 0.5618 GB, free: 7.117 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.104e-05/0.1411, allocations: 7.922 kB / 0.5618 GB, free: 7.109 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.762e-05/0.1411, allocations: 3.938 kB / 0.5618 GB, free: 7.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.1417, allocations: 139.8 kB / 0.562 GB, free: 6.973 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.322e-05/0.1418, allocations: 43.84 kB / 0.562 GB, free: 6.93 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.688e-05/0.1418, allocations: 7.984 kB / 0.562 GB, free: 6.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.68e-05/0.1419, allocations: 23.92 kB / 0.562 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.1419, allocations: 23.92 kB / 0.5621 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.1419, allocations: 0 / 0.5621 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004919/0.1424, allocations: 351.3 kB / 0.5624 GB, free: 6.531 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.909e-05/0.1425, allocations: 15.92 kB / 0.5624 GB, free: 6.516 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.593e-05/0.1425, allocations: 57.55 kB / 0.5625 GB, free: 6.453 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.1428, allocations: 175.8 kB / 0.5626 GB, free: 6.281 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1428, allocations: 0 / 0.5626 GB, free: 6.281 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1428, allocations: 0 / 0.5626 GB, free: 6.281 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1428, allocations: 0 / 0.5626 GB, free: 6.281 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006489/0.1435, allocations: 399.3 kB / 0.563 GB, free: 5.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1435, allocations: 8.031 kB / 0.563 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.827e-05/0.1436, allocations: 34.75 kB / 0.5631 GB, free: 5.789 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.1436, allocations: 8.844 kB / 0.5631 GB, free: 5.781 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.1437, allocations: 172.3 kB / 0.5632 GB, free: 5.574 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.1438, allocations: 4.375 kB / 0.5632 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.1438, allocations: 8.375 kB / 0.5632 GB, free: 5.562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.144, allocations: 78.22 kB / 0.5633 GB, free: 5.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1441, allocations: 7.938 kB / 0.5633 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1441, allocations: 0 / 0.5633 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1441, allocations: 4 kB / 0.5633 GB, free: 5.469 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.1444, allocations: 63.89 kB / 0.5634 GB, free: 5.406 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000523/0.1449, allocations: 328.6 kB / 0.5637 GB, free: 5.035 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1452, allocations: 86.53 kB / 0.5638 GB, free: 4.941 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.1453, allocations: 36.84 kB / 0.5638 GB, free: 4.902 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.1454, allocations: 3.938 kB / 0.5638 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.1454, allocations: 30.72 kB / 0.5639 GB, free: 4.859 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1454, allocations: 0 / 0.5639 GB, free: 4.859 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.00166/0.1471, allocations: 0.681 MB / 0.5645 GB, free: 4.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.1471, allocations: 51.41 kB / 0.5646 GB, free: 4.027 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.285e-05/0.1472, allocations: 105.8 kB / 0.5647 GB, free: 3.914 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.1472, allocations: 29.7 kB / 0.5647 GB, free: 3.879 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.906e-05/0.1473, allocations: 96.03 kB / 0.5648 GB, free: 3.781 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.1473, allocations: 35.45 kB / 0.5648 GB, free: 3.746 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-05/0.1474, allocations: 21.7 kB / 0.5648 GB, free: 3.719 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1475, allocations: 318.8 kB / 0.5651 GB, free: 3.398 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.1476, allocations: 39.97 kB / 0.5652 GB, free: 3.359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1478, allocations: 35.98 kB / 0.5652 GB, free: 3.324 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.148, allocations: 80.77 kB / 0.5653 GB, free: 3.242 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.148, allocations: 0 / 0.5653 GB, free: 3.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003353/0.1484, allocations: 137.3 kB / 0.5654 GB, free: 3.105 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.1484, allocations: 4 kB / 0.5654 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.1484, allocations: 3.984 kB / 0.5654 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1484, allocations: 0 / 0.5654 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1486, allocations: 31.92 kB / 0.5655 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.1486, allocations: 3.938 kB / 0.5655 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.97e-05/0.1487, allocations: 4 kB / 0.5655 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1487, allocations: 12 kB / 0.5655 GB, free: 3.047 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 7.771e-05/0.1488, allocations: 121.8 kB / 0.5656 GB, free: 2.918 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.1488, allocations: 4 kB / 0.5656 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003955/0.1492, allocations: 141.5 kB / 0.5657 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1492, allocations: 0 / 0.5657 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.1492, allocations: 7.938 kB / 0.5657 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1493, allocations: 4 kB / 0.5657 GB, free: 2.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005708/0.1498, allocations: 386.4 kB / 0.5661 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1498, allocations: 0 / 0.5661 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.15, allocations: 31.98 kB / 0.5661 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.15, allocations: 3.938 kB / 0.5662 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.15, allocations: 4 kB / 0.5662 GB, free: 2.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.15, allocations: 3.984 kB / 0.5662 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.15, allocations: 4 kB / 0.5662 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005206/0.1506, allocations: 255.4 kB / 0.5664 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.1506, allocations: 89.05 kB / 0.5665 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.1506, allocations: 3.938 kB / 0.5665 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.1508, allocations: 8 kB / 0.5665 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.1508, allocations: 7.984 kB / 0.5665 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1508, allocations: 4 kB / 0.5665 GB, free: 1.883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.1509, allocations: 87.33 kB / 0.5666 GB, free: 1.797 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1509, allocations: 0 / 0.5666 GB, free: 1.797 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.1511, allocations: 40 kB / 0.5666 GB, free: 1.758 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0008682/0.152, allocations: 0.8332 MB / 0.5674 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.1524, allocations: 83.95 kB / 0.5675 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1524, allocations: 8 kB / 0.5675 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.1525, allocations: 47.97 kB / 0.5676 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.1528, allocations: 11.39 kB / 0.5676 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.1548, allocations: 1.681 MB / 0.5692 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.1551, allocations: 0.6926 MB / 0.5699 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.108e-05/0.1551, allocations: 20.59 kB / 0.5699 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.1552, allocations: 19.44 kB / 0.5699 GB, free: 14.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1552, allocations: 0 / 0.5699 GB, free: 14.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.1662, allocations: 2.086 MB / 0.572 GB, free: 12.37 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.1663, allocations: 239.3 kB / 0.5722 GB, free: 12.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/1.911, allocations: 0 / 0.5722 GB, free: 12.12 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)