Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6673/0.6673, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.3 MB / 400.4 MB, free: 5.859 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008795/0.0008796, allocations: 87.84 kB / 483.3 MB, free: 5.895 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.97e-05/3.986e-05, allocations: 3.344 kB / 0.5601 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1414, allocations: 82.31 MB / 0.6405 GB, free: 7.734 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5266/0.668, allocations: 112.2 MB / 0.7501 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001745/0.6682, allocations: 83.97 kB / 0.7502 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01122/0.6795, allocations: 4.556 MB / 0.7546 GB, free: 27.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6795, allocations: 0 / 0.7546 GB, free: 27.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.6795, allocations: 0 / 0.7546 GB, free: 27.49 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003119/0.6798, allocations: 349.4 kB / 0.7549 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.6799, allocations: 7.844 kB / 0.755 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.6799, allocations: 40.58 kB / 0.755 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.68, allocations: 7.906 kB / 0.755 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.6801, allocations: 174.9 kB / 0.7552 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.6801, allocations: 3.938 kB / 0.7552 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.6801, allocations: 6.219 kB / 0.7552 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.6802, allocations: 48.44 kB / 0.7552 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.6802, allocations: 3.938 kB / 0.7552 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.6803, allocations: 0 / 0.7552 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.6803, allocations: 0 / 0.7552 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.57e-05/0.6803, allocations: 20.62 kB / 0.7552 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.6805, allocations: 168.6 kB / 0.7554 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 8.133e-05/0.6806, allocations: 62.11 kB / 0.7555 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.6806, allocations: 24.84 kB / 0.7555 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.6806, allocations: 3.969 kB / 0.7555 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.6807, allocations: 33.88 kB / 0.7555 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.6807, allocations: 3.938 kB / 0.7555 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0008428/0.6815, allocations: 0.5565 MB / 0.7561 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.6816, allocations: 51.41 kB / 0.7561 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.837e-05/0.6816, allocations: 92.19 kB / 0.7562 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.6817, allocations: 25.7 kB / 0.7562 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.6817, allocations: 82.86 kB / 0.7563 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.6817, allocations: 43.8 kB / 0.7564 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.6817, allocations: 11 kB / 0.7564 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.6819, allocations: 314.8 kB / 0.7567 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.278e-05/0.6819, allocations: 17.94 kB / 0.7567 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.253e-05/0.6819, allocations: 25.41 kB / 0.7567 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.212e-05/0.682, allocations: 21.73 kB / 0.7567 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.682, allocations: 3.844 kB / 0.7567 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001427/0.6821, allocations: 92.03 kB / 0.7568 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.6822, allocations: 7.688 kB / 0.7568 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.6822, allocations: 0 / 0.7568 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.6822, allocations: 4 kB / 0.7568 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.6823, allocations: 22.08 kB / 0.7569 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.6823, allocations: 0 / 0.7569 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.47e-05/0.6823, allocations: 4.453 kB / 0.7569 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.6823, allocations: 4.406 kB / 0.7569 GB, free: 25.45 MB / 0.5105 GB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.762e-05/0.6824, allocations: 112.3 kB / 0.757 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.6824, allocations: 8.281 kB / 0.757 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.6826, allocations: 107.3 kB / 0.7571 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.6826, allocations: 7.844 kB / 0.7571 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.6826, allocations: 0 / 0.7571 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6827, allocations: 0 / 0.7571 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.683, allocations: 349.4 kB / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.683, allocations: 0 / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.894e-05/0.6831, allocations: 24.67 kB / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.6831, allocations: 0 / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.6831, allocations: 0 / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.6832, allocations: 3.875 kB / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6832, allocations: 0 / 0.7574 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.6834, allocations: 223.4 kB / 0.7577 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.6834, allocations: 91.48 kB / 0.7577 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.6835, allocations: 0 / 0.7577 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.428e-05/0.6835, allocations: 3 kB / 0.7577 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.925e-05/0.6836, allocations: 6.688 kB / 0.7578 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.6836, allocations: 3.875 kB / 0.7578 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 4.483e-05/0.6836, allocations: 89.02 kB / 0.7578 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6836, allocations: 0 / 0.7578 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002405/0.6839, allocations: 42.25 kB / 0.7579 GB, free: 24.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * Number of discrete variables: 0 () * Number of discrete 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 (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.0005641/0.6845, allocations: 0.7877 MB / 0.7587 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.6846, allocations: 58.94 kB / 0.7587 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6846, allocations: 8.094 kB / 0.7587 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.589e-05/0.6846, allocations: 35.03 kB / 0.7588 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.6848, allocations: 0 / 0.7588 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005189/0.6853, allocations: 286 kB / 0.759 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.6856, allocations: 0.6895 MB / 0.7597 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 4.545e-05/0.6856, allocations: 14.06 kB / 0.7597 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.6857, allocations: 19.38 kB / 0.7597 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.6857, allocations: 0 / 0.7597 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8435/1.529, allocations: 1.751 MB / 0.7614 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/1.529, allocations: 188.4 kB / 0.7616 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/3.236, allocations: 0 / 0.7616 GB, free: 22.36 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)