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.001353/0.001353, allocations: 108.7 kB / 16.41 MB, free: 6.484 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.001152/0.001152, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6728/0.6728, allocations: 115.3 MB / 406.5 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 68.27 kB / 0.5572 GB, free: 32.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1484, allocations: 76.17 MB / 0.6316 GB, free: 4.91 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002748/0.1512, allocations: 1.447 MB / 0.633 GB, free: 3.449 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1523, allocations: 0.6305 MB / 0.6336 GB, free: 2.816 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-05/0.1524, allocations: 4 kB / 0.6336 GB, free: 2.812 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 3.459e-05/0.1524, allocations: 3.938 kB / 0.6336 GB, free: 2.809 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 7.983e-05/0.1525, allocations: 15.91 kB / 0.6336 GB, free: 2.793 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006771/0.1532, allocations: 158 kB / 0.6338 GB, free: 2.641 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 9.667e-05/0.1533, allocations: 59.77 kB / 0.6339 GB, free: 2.582 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.443e-05/0.1534, allocations: 4 kB / 0.6339 GB, free: 2.578 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.106e-05/0.1535, allocations: 23.92 kB / 0.6339 GB, free: 2.555 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.1535, allocations: 27.91 kB / 0.6339 GB, free: 2.527 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.1535, allocations: 4 kB / 0.6339 GB, free: 2.523 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004996/0.154, allocations: 343.3 kB / 0.6342 GB, free: 2.188 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.1541, allocations: 19.91 kB / 0.6343 GB, free: 2.168 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.585e-05/0.1541, allocations: 23.88 kB / 0.6343 GB, free: 2.145 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.1544, allocations: 179.2 kB / 0.6345 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1545, allocations: 3.938 kB / 0.6345 GB, free: 1.969 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1545, allocations: 0 / 0.6345 GB, free: 1.969 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1545, allocations: 0 / 0.6345 GB, free: 1.969 MB / 478.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.0006088/0.1551, allocations: 399.3 kB / 0.6348 GB, free: 1.527 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1551, allocations: 12.03 kB / 0.6348 GB, free: 1.516 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.096e-05/0.1552, allocations: 38.75 kB / 0.6349 GB, free: 1.469 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.1552, allocations: 8.844 kB / 0.6349 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.1553, allocations: 164.3 kB / 0.6351 GB, free: 1.262 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.1554, allocations: 4.375 kB / 0.6351 GB, free: 1.258 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.1554, allocations: 8.375 kB / 0.6351 GB, free: 1.25 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.1557, allocations: 78.2 kB / 0.6351 GB, free: 1.168 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1557, allocations: 7.875 kB / 0.6351 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1557, allocations: 4 kB / 0.6351 GB, free: 1.156 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1557, allocations: 4 kB / 0.6352 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.1559, allocations: 51.95 kB / 0.6352 GB, free: 1.102 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005379/0.1565, allocations: 312.7 kB / 0.6355 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1568, allocations: 86.45 kB / 0.6356 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1569, allocations: 32.84 kB / 0.6356 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.1569, allocations: 0 / 0.6356 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.157, allocations: 34.56 kB / 0.6356 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 9.01e-07/0.157, allocations: 0 / 0.6356 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of matching and sorting (n=11): time 0.001594/0.1586, allocations: 0.6461 MB / 0.6363 GB, free: 15.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.1586, allocations: 55.41 kB / 0.6363 GB, free: 15.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.101e-05/0.1587, allocations: 109.8 kB / 0.6364 GB, free: 15.65 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.1587, allocations: 25.7 kB / 0.6365 GB, free: 15.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.1588, allocations: 100 kB / 0.6366 GB, free: 15.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.1588, allocations: 39.39 kB / 0.6366 GB, free: 15.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.1589, allocations: 33.64 kB / 0.6366 GB, free: 15.44 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.159, allocations: 314.8 kB / 0.6369 GB, free: 15.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.1591, allocations: 31.97 kB / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1592, allocations: 35.92 kB / 0.637 GB, free: 15.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.1595, allocations: 76.2 kB / 0.6371 GB, free: 14.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1595, allocations: 0 / 0.6371 GB, free: 14.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002857/0.1598, allocations: 121.6 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1598, allocations: 4 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.1598, allocations: 3.984 kB / 0.6372 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1598, allocations: 0 / 0.6372 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.16, allocations: 31.92 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.16, allocations: 3.938 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.1601, allocations: 8 kB / 0.6372 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1601, allocations: 8 kB / 0.6372 GB, free: 14.8 MB / 494.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.677e-05/0.1602, allocations: 117.8 kB / 0.6373 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.1602, allocations: 7.906 kB / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003491/0.1606, allocations: 125.6 kB / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1606, allocations: 7.938 kB / 0.6375 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1606, allocations: 3.938 kB / 0.6375 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1606, allocations: 7.984 kB / 0.6375 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.1611, allocations: 374.5 kB / 0.6379 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1611, allocations: 0 / 0.6379 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.1613, allocations: 28.02 kB / 0.6379 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1613, allocations: 7.875 kB / 0.6379 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.1613, allocations: 7.984 kB / 0.6379 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1613, allocations: 0 / 0.6379 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1613, allocations: 4 kB / 0.6379 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.1618, allocations: 251.3 kB / 0.6381 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.31e-05/0.1618, allocations: 81.11 kB / 0.6382 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.1618, allocations: 3.938 kB / 0.6382 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.162, allocations: 8.031 kB / 0.6382 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.162, allocations: 3.984 kB / 0.6382 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/0.162, allocations: 12.06 kB / 0.6382 GB, free: 13.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.553e-05/0.162, allocations: 87.2 kB / 0.6383 GB, free: 13.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.162, allocations: 0 / 0.6383 GB, free: 13.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.1623, allocations: 40 kB / 0.6384 GB, free: 13.54 MB / 494.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.0007879/0.1631, allocations: 0.8138 MB / 0.6392 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.1634, allocations: 79.89 kB / 0.6392 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1634, allocations: 0 / 0.6392 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.1635, allocations: 47.91 kB / 0.6393 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.1639, allocations: 9.375 kB / 0.6393 GB, free: 12.56 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.1657, allocations: 1.606 MB / 0.6409 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.1659, allocations: 0.6924 MB / 0.6415 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.216e-05/0.166, allocations: 12.67 kB / 0.6415 GB, free: 10.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.782e-05/0.166, allocations: 23.42 kB / 0.6416 GB, free: 10.12 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.166, allocations: 0 / 0.6416 GB, free: 10.12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.1853, allocations: 2.361 MB / 0.6439 GB, free: 7.945 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.31/7.495, allocations: 12.41 kB / 0.6439 GB, free: 7.938 MB / 494.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)