Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7293/0.7293, allocations: 140.1 MB / 156 MB, free: 5.156 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009705/0.0009705, allocations: 183.4 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.4 MB / 426.3 MB, free: 8.375 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007212/0.0007211, allocations: 93.3 kB / 0.4945 GB, free: 8.328 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001666/0.001666, allocations: 272.8 kB / 0.5728 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004987, allocations: 28 kB / 0.662 GB, free: 6.785 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3793, allocations: 79.29 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.134/0.5134, allocations: 107.6 MB / 0.8445 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5138, allocations: 83.92 kB / 0.8446 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.007078/0.5209, allocations: 2.28 MB / 0.8468 GB, free: 292 kB / 0.5105 GB Notification: Performance of FrontEnd: time 3.206e-06/0.5209, allocations: 4 kB / 0.8468 GB, free: 288 kB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.521, allocations: 4 kB / 0.8468 GB, free: 284 kB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003937/0.5214, allocations: 331.5 kB / 0.8471 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.5214, allocations: 8.031 kB / 0.8471 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.5215, allocations: 4.938 kB / 0.8471 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.5216, allocations: 168.3 kB / 0.8473 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.5216, allocations: 8.312 kB / 0.8473 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.5216, allocations: 384 / 0.8473 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.947e-05/0.5218, allocations: 38.2 kB / 0.8474 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.5218, allocations: 4.125 kB / 0.8474 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.5218, allocations: 3.938 kB / 0.8474 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.5218, allocations: 3.984 kB / 0.8474 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.912e-05/0.5218, allocations: 4 kB / 0.8474 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.522, allocations: 149.6 kB / 0.8475 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.719e-05/0.5221, allocations: 30.59 kB / 0.8475 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.031e-05/0.5221, allocations: 4.859 kB / 0.8475 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.5221, allocations: 11.97 kB / 0.8476 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.5222, allocations: 34.62 kB / 0.8476 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.5222, allocations: 3.938 kB / 0.8476 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001694/0.5224, allocations: 41.64 kB / 0.8476 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.5224, allocations: 51.41 kB / 0.8477 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.924e-05/0.5225, allocations: 97.84 kB / 0.8478 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.5225, allocations: 25.95 kB / 0.8478 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.153e-05/0.5226, allocations: 84.14 kB / 0.8479 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.5226, allocations: 7.906 kB / 0.8479 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.5226, allocations: 0 / 0.8479 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5227, allocations: 314.8 kB / 0.8482 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.039e-05/0.5227, allocations: 0 / 0.8482 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-06/0.5227, allocations: 4 kB / 0.8482 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.434e-05/0.5228, allocations: 20.78 kB / 0.8482 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.5228, allocations: 0 / 0.8482 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.182e-05/0.5229, allocations: 37.77 kB / 0.8482 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.5229, allocations: 4 kB / 0.8483 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.5229, allocations: 3.938 kB / 0.8483 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.5229, allocations: 4 kB / 0.8483 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.5231, allocations: 11.98 kB / 0.8483 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003997/0.5235, allocations: 0.5821 MB / 0.8488 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.274e-05/0.5236, allocations: 8.125 kB / 0.8488 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.5236, allocations: 0 / 0.8488 GB, free: 13.96 MB / 0.5261 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.232e-05/0.5237, allocations: 109.8 kB / 0.849 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-06/0.5237, allocations: 4 kB / 0.849 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.5238, allocations: 44.81 kB / 0.849 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.5238, allocations: 0 / 0.849 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.5238, allocations: 3.938 kB / 0.849 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.5238, allocations: 0 / 0.849 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.5239, allocations: 165.6 kB / 0.8492 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.524, allocations: 0 / 0.8492 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.813e-05/0.524, allocations: 11.98 kB / 0.8492 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5241, allocations: 0 / 0.8492 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.5241, allocations: 3.938 kB / 0.8492 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003302/0.5244, allocations: 0.582 MB / 0.8497 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5244, allocations: 3.938 kB / 0.8497 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.201e-05/0.5245, allocations: 69.25 kB / 0.8498 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.5246, allocations: 77.11 kB / 0.8499 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.5246, allocations: 0 / 0.8499 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.556e-05/0.5246, allocations: 0 / 0.8499 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.151e-05/0.5246, allocations: 15.88 kB / 0.8499 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.5246, allocations: 0 / 0.8499 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.498e-05/0.5247, allocations: 75.28 kB / 0.85 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5247, allocations: 4.125 kB / 0.85 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002141/0.5249, allocations: 12 kB / 0.85 GB, free: 12.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001798/0.5251, allocations: 119.2 kB / 0.8501 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.5253, allocations: 19.98 kB / 0.8501 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5253, allocations: 0 / 0.8501 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.873e-05/0.5254, allocations: 11.98 kB / 0.8501 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001607/0.5255, allocations: 4.125 kB / 0.8501 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.5259, allocations: 116.4 kB / 0.8502 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.5262, allocations: 0.6731 MB / 0.8509 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 2.191e-05/0.5262, allocations: 3.906 kB / 0.8509 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.41e-05/0.5263, allocations: 11.44 kB / 0.8509 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of SimCode: time 6.21e-07/0.5263, allocations: 0 / 0.8509 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of Templates: time 0.002501/0.5288, allocations: 434.4 kB / 0.8513 GB, free: 11.24 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)