Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001501/0.001501, allocations: 199.8 kB / 16.14 MB, free: 6.793 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.369/1.369, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7278/0.7278, allocations: 132.2 MB / 422.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.34 kB / 0.5011 GB, free: 4.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3786, allocations: 80.2 MB / 0.5794 GB, free: 4.551 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002187/0.3808, allocations: 1.334 MB / 0.5807 GB, free: 3.613 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008923/0.3817, allocations: 0.6346 MB / 0.5814 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.534e-05/0.3817, allocations: 1.219 kB / 0.5814 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.754e-05/0.3817, allocations: 4.688 kB / 0.5814 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.93e-05/0.3818, allocations: 5.562 kB / 0.5814 GB, free: 3.168 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.3823, allocations: 128 kB / 0.5815 GB, free: 3.109 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.672e-05/0.3823, allocations: 20.28 kB / 0.5815 GB, free: 3.102 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.198e-05/0.3824, allocations: 6.188 kB / 0.5815 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.247e-05/0.3824, allocations: 5.062 kB / 0.5815 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.202e-05/0.3824, allocations: 14.06 kB / 0.5815 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.114e-05/0.3825, allocations: 1.375 kB / 0.5815 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005014/0.383, allocations: 344 kB / 0.5819 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.383, allocations: 2.219 kB / 0.5819 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.485e-05/0.383, allocations: 8.25 kB / 0.5819 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002569/0.3833, allocations: 151.7 kB / 0.582 GB, free: 2.934 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.3833, allocations: 0.75 kB / 0.582 GB, free: 2.934 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3833, allocations: 0.6094 kB / 0.582 GB, free: 2.934 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.3833, allocations: 1.375 kB / 0.582 GB, free: 2.934 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003188/0.3836, allocations: 364.7 kB / 0.5824 GB, free: 2.551 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.3837, allocations: 9.156 kB / 0.5824 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.3837, allocations: 3.453 kB / 0.5824 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.769e-05/0.3838, allocations: 170.7 kB / 0.5825 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-06/0.3838, allocations: 2.125 kB / 0.5825 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.3838, allocations: 5.906 kB / 0.5825 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.903e-05/0.3839, allocations: 43.94 kB / 0.5826 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3839, allocations: 3.938 kB / 0.5826 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.3839, allocations: 0.7969 kB / 0.5826 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3839, allocations: 1.375 kB / 0.5826 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.886e-05/0.384, allocations: 12.08 kB / 0.5826 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001128/0.3841, allocations: 158.2 kB / 0.5828 GB, free: 2.102 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.3843, allocations: 43.95 kB / 0.5828 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.955e-05/0.3843, allocations: 19.03 kB / 0.5828 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.3843, allocations: 0 / 0.5828 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.37e-05/0.3844, allocations: 44.16 kB / 0.5829 GB, free: 2.008 MB / 430.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.3844, allocations: 1.219 kB / 0.5829 GB, free: 2.008 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.000527/0.3849, allocations: 300.5 kB / 0.5831 GB, free: 1.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.733e-05/0.3849, allocations: 52.53 kB / 0.5832 GB, free: 1.668 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.099e-05/0.385, allocations: 111.2 kB / 0.5833 GB, free: 1.555 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.385, allocations: 27.36 kB / 0.5833 GB, free: 1.523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.288e-05/0.385, allocations: 80.14 kB / 0.5834 GB, free: 1.441 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.385, allocations: 24.39 kB / 0.5834 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.3851, allocations: 20.78 kB / 0.5834 GB, free: 1.402 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.41e-05/0.3851, allocations: 313.4 kB / 0.5837 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.636e-05/0.3851, allocations: 11.73 kB / 0.5838 GB, free: 1.086 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.266e-05/0.3852, allocations: 11.72 kB / 0.5838 GB, free: 1.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.287e-05/0.3852, allocations: 34.02 kB / 0.5838 GB, free: 1.062 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.3852, allocations: 0 / 0.5838 GB, free: 1.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.276e-05/0.3853, allocations: 80.11 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.3853, allocations: 5.031 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3854, allocations: 1.281 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.3854, allocations: 0.7031 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.108e-05/0.3854, allocations: 11.05 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.3854, allocations: 0.6094 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.3855, allocations: 1.125 kB / 0.5839 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.3855, allocations: 5.938 kB / 0.5839 GB, free: 1 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 (7): * Single equations (assignments): 7 * 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 4.232e-05/0.3855, allocations: 118 kB / 0.584 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.3855, allocations: 6.625 kB / 0.584 GB, free: 0.875 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3857, allocations: 72.33 kB / 0.5841 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3857, allocations: 1.375 kB / 0.5841 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3857, allocations: 0 / 0.5841 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3857, allocations: 1.797 kB / 0.5841 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.3859, allocations: 320.5 kB / 0.5844 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3859, allocations: 0.8438 kB / 0.5844 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.527e-05/0.386, allocations: 15.64 kB / 0.5844 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.386, allocations: 1.156 kB / 0.5844 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.386, allocations: 1.656 kB / 0.5844 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.386, allocations: 1.094 kB / 0.5844 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.386, allocations: 0 / 0.5844 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/0.3862, allocations: 185.5 kB / 0.5846 GB, free: 332 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.581e-05/0.3862, allocations: 80.69 kB / 0.5847 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.3863, allocations: 2.281 kB / 0.5847 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.211e-05/0.3863, allocations: 2.156 kB / 0.5847 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.3864, allocations: 7.547 kB / 0.5847 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.3864, allocations: 7.266 kB / 0.5847 GB, free: 228 kB / 430.1 MB Notification: Performance of sorting global known variables: time 1.827e-05/0.3864, allocations: 78.11 kB / 0.5848 GB, free: 152 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3864, allocations: 3.938 kB / 0.5848 GB, free: 148 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002495/0.3867, allocations: 24.08 kB / 0.5848 GB, free: 140 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001477/0.3868, allocations: 131.2 kB / 0.5849 GB, free: 28 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.472e-05/0.3869, allocations: 35.84 kB / 0.5849 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3869, allocations: 0 / 0.5849 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.866e-05/0.387, allocations: 14.02 kB / 0.585 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3872, allocations: 6.812 kB / 0.585 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/0.3876, allocations: 211.3 kB / 0.5852 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.3878, allocations: 0.68 MB / 0.5858 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.379e-05/0.3879, allocations: 9.062 kB / 0.5858 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.805e-05/0.3879, allocations: 10.41 kB / 0.5859 GB, free: 15.11 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3879, allocations: 0 / 0.5859 GB, free: 15.11 MB / 446.1 MB Notification: Performance of Templates: time 0.0028/0.3907, allocations: 0.623 MB / 0.5865 GB, free: 15.05 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)