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.001512/0.001512, allocations: 100.1 kB / 15.88 MB, free: 12 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.001718/0.001718, allocations: 209.6 kB / 16.79 MB, free: 6.84 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.35/1.35, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6937/0.6937, allocations: 115.3 MB / 406 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.73 kB / 493 MB, free: 6.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1275, allocations: 76.18 MB / 0.5559 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002645/0.1302, allocations: 1.53 MB / 0.5574 GB, free: 9.207 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1313, allocations: 0.6463 MB / 0.558 GB, free: 8.559 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.119e-05/0.1314, allocations: 0 / 0.558 GB, free: 8.559 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.455e-05/0.1315, allocations: 0 / 0.558 GB, free: 8.559 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.703e-05/0.1315, allocations: 7.922 kB / 0.558 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005613/0.1321, allocations: 139.6 kB / 0.5581 GB, free: 8.414 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.512e-05/0.1322, allocations: 43.8 kB / 0.5582 GB, free: 8.371 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.259e-05/0.1322, allocations: 4 kB / 0.5582 GB, free: 8.367 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.689e-05/0.1323, allocations: 23.92 kB / 0.5582 GB, free: 8.344 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.401e-05/0.1323, allocations: 31.89 kB / 0.5582 GB, free: 8.312 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.1323, allocations: 0 / 0.5582 GB, free: 8.312 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.1328, allocations: 343.3 kB / 0.5586 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.971e-05/0.1329, allocations: 15.92 kB / 0.5586 GB, free: 7.961 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.1329, allocations: 23.86 kB / 0.5586 GB, free: 7.938 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.1332, allocations: 187.8 kB / 0.5588 GB, free: 7.754 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1332, allocations: 0 / 0.5588 GB, free: 7.754 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1332, allocations: 0 / 0.5588 GB, free: 7.754 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.1332, allocations: 0 / 0.5588 GB, free: 7.754 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.000574/0.1338, allocations: 391.4 kB / 0.5591 GB, free: 7.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1339, allocations: 8.031 kB / 0.5591 GB, free: 7.312 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.892e-05/0.1339, allocations: 46.67 kB / 0.5592 GB, free: 7.258 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.1339, allocations: 8.844 kB / 0.5592 GB, free: 7.25 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.1341, allocations: 164.4 kB / 0.5594 GB, free: 7.051 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.1341, allocations: 8.375 kB / 0.5594 GB, free: 7.043 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.1341, allocations: 8.375 kB / 0.5594 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.1344, allocations: 78.16 kB / 0.5594 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.1344, allocations: 7.922 kB / 0.5595 GB, free: 6.945 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1344, allocations: 4 kB / 0.5595 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1344, allocations: 0 / 0.5595 GB, free: 6.941 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.1347, allocations: 47.91 kB / 0.5595 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.1352, allocations: 336.5 kB / 0.5598 GB, free: 6.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.1355, allocations: 78.53 kB / 0.5599 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1357, allocations: 28.84 kB / 0.5599 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1357, allocations: 0 / 0.5599 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.1357, allocations: 38.56 kB / 0.56 GB, free: 6.352 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1357, allocations: 0 / 0.56 GB, free: 6.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.001682/0.1374, allocations: 0.6423 MB / 0.5606 GB, free: 5.617 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.1375, allocations: 59.34 kB / 0.5607 GB, free: 5.547 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1376, allocations: 105.8 kB / 0.5608 GB, free: 5.434 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.1376, allocations: 25.7 kB / 0.5608 GB, free: 5.402 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.1377, allocations: 96.05 kB / 0.5609 GB, free: 5.305 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1378, allocations: 35.45 kB / 0.5609 GB, free: 5.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.1378, allocations: 29.7 kB / 0.5609 GB, free: 5.234 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1379, allocations: 314.8 kB / 0.5612 GB, free: 4.918 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.1381, allocations: 31.97 kB / 0.5613 GB, free: 4.887 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1382, allocations: 31.98 kB / 0.5613 GB, free: 4.855 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.1385, allocations: 75.95 kB / 0.5614 GB, free: 4.781 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1385, allocations: 4 kB / 0.5614 GB, free: 4.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003205/0.1388, allocations: 113.7 kB / 0.5615 GB, free: 4.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.1388, allocations: 7.938 kB / 0.5615 GB, free: 4.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.1389, allocations: 3.984 kB / 0.5615 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.1389, allocations: 0 / 0.5615 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.139, allocations: 35.97 kB / 0.5615 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.139, allocations: 3.938 kB / 0.5615 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.571e-05/0.1391, allocations: 4 kB / 0.5615 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.1391, allocations: 7.938 kB / 0.5615 GB, free: 4.598 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 9.967e-05/0.1392, allocations: 113.8 kB / 0.5616 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.1393, allocations: 15.91 kB / 0.5617 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003679/0.1396, allocations: 129.5 kB / 0.5618 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1397, allocations: 4 kB / 0.5618 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1397, allocations: 3.938 kB / 0.5618 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1397, allocations: 0 / 0.5618 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005987/0.1403, allocations: 400.2 kB / 0.5622 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1403, allocations: 0 / 0.5622 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.1405, allocations: 23.98 kB / 0.5622 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1405, allocations: 3.938 kB / 0.5622 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1405, allocations: 0 / 0.5622 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.1405, allocations: 4 kB / 0.5622 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1405, allocations: 0 / 0.5622 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.141, allocations: 251.3 kB / 0.5624 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.141, allocations: 81.09 kB / 0.5625 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1411, allocations: 11.88 kB / 0.5625 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.1412, allocations: 8.031 kB / 0.5625 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.1412, allocations: 3.984 kB / 0.5625 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.1412, allocations: 4 kB / 0.5625 GB, free: 3.457 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.955e-05/0.1413, allocations: 87.34 kB / 0.5626 GB, free: 3.371 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1413, allocations: 0 / 0.5626 GB, free: 3.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.1416, allocations: 43.98 kB / 0.5627 GB, free: 3.328 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.0008992/0.1425, allocations: 0.811 MB / 0.5635 GB, free: 2.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.1428, allocations: 83.89 kB / 0.5635 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1428, allocations: 0 / 0.5635 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.143, allocations: 48.78 kB / 0.5636 GB, free: 2.363 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.1433, allocations: 8.328 kB / 0.5636 GB, free: 2.355 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.1454, allocations: 1.615 MB / 0.5652 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.1457, allocations: 0.7043 MB / 0.5659 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.553e-05/0.1458, allocations: 16.59 kB / 0.5659 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.1459, allocations: 19.44 kB / 0.5659 GB, free: 15.89 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1459, allocations: 0 / 0.5659 GB, free: 15.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01232/0.1582, allocations: 2.136 MB / 0.568 GB, free: 13.95 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.1584, allocations: 250.3 kB / 0.5682 GB, free: 13.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.95, allocations: 2.188 kB / 0.5682 GB, free: 13.7 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)