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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8503/0.8503, allocations: 141.8 MB / 149.3 MB, free: 9.199 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 188.4 kB / 182.2 MB, free: 9.438 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008558/0.0008558, allocations: 85.55 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001957/0.001958, allocations: 279 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.852e-05, allocations: 4 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4704/0.4704, allocations: 82.78 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.6156, allocations: 108.4 MB / 0.8633 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.6159, allocations: 83.94 kB / 0.8634 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.006725/0.6226, allocations: 2.294 MB / 0.8656 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.894e-06/0.6227, allocations: 0 / 0.8656 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.6227, allocations: 0 / 0.8656 GB, free: 1.008 MB / 0.5261 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.0002941/0.623, allocations: 338.4 kB / 0.8659 GB, free: 0.6328 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.6231, allocations: 12.03 kB / 0.8659 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.6231, allocations: 0 / 0.8659 GB, free: 0.6211 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.6232, allocations: 171 kB / 0.8661 GB, free: 424 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.6232, allocations: 4 kB / 0.8661 GB, free: 420 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.6233, allocations: 0 / 0.8661 GB, free: 420 kB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.05e-05/0.6233, allocations: 4 kB / 0.8661 GB, free: 416 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.291e-05/0.6234, allocations: 29.7 kB / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.6234, allocations: 0 / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.6234, allocations: 0 / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.6235, allocations: 0 / 0.8661 GB, free: 380 kB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.6236, allocations: 146.1 kB / 0.8663 GB, free: 196 kB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.719e-05/0.6237, allocations: 22.61 kB / 0.8663 GB, free: 164 kB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.235e-05/0.6237, allocations: 12.81 kB / 0.8663 GB, free: 148 kB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.6237, allocations: 4.062 kB / 0.8663 GB, free: 144 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.6238, allocations: 30.56 kB / 0.8664 GB, free: 104 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.6238, allocations: 3.938 kB / 0.8664 GB, free: 100 kB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001216/0.6239, allocations: 33.7 kB / 0.8664 GB, free: 60 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.6239, allocations: 55.39 kB / 0.8664 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.007e-05/0.624, allocations: 89.03 kB / 0.8665 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.624, allocations: 29.7 kB / 0.8666 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.6241, allocations: 88.08 kB / 0.8666 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.6241, allocations: 3.906 kB / 0.8666 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-06/0.6241, allocations: 0 / 0.8666 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.6242, allocations: 310.8 kB / 0.8669 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.6242, allocations: 0 / 0.8669 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-06/0.6242, allocations: 4 kB / 0.8669 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.727e-05/0.6243, allocations: 12.19 kB / 0.867 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.6243, allocations: 0 / 0.867 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.437e-05/0.6243, allocations: 37.69 kB / 0.867 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.6244, allocations: 7.953 kB / 0.867 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.6244, allocations: 0 / 0.867 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.6244, allocations: 0 / 0.867 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.6245, allocations: 15.92 kB / 0.867 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003349/0.6249, allocations: 0.5898 MB / 0.8676 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.6249, allocations: 32 / 0.8676 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.6249, allocations: 7.75 kB / 0.8676 GB, free: 14.76 MB / 0.5417 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 (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 7.169e-05/0.625, allocations: 104.9 kB / 0.8677 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 4.546e-05/0.6251, allocations: 33.7 kB / 0.8677 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-06/0.6251, allocations: 3.984 kB / 0.8677 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.772e-05/0.6252, allocations: 45.39 kB / 0.8678 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.6252, allocations: 4.156 kB / 0.8678 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.6252, allocations: 0 / 0.8678 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.6252, allocations: 4 kB / 0.8678 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.762e-05/0.6253, allocations: 130.2 kB / 0.8679 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.6253, allocations: 0 / 0.8679 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.6254, allocations: 15.98 kB / 0.8679 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6254, allocations: 0 / 0.8679 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.6254, allocations: 0 / 0.8679 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002903/0.6257, allocations: 0.5898 MB / 0.8685 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6257, allocations: 0 / 0.8685 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.446e-05/0.6258, allocations: 65.05 kB / 0.8686 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.6258, allocations: 81.05 kB / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.6258, allocations: 4 kB / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.508e-05/0.6259, allocations: 4 kB / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.6259, allocations: 0 / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.6259, allocations: 4.125 kB / 0.8687 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.158e-05/0.6259, allocations: 79.28 kB / 0.8687 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6259, allocations: 0 / 0.8687 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001941/0.6261, allocations: 7.953 kB / 0.8687 GB, free: 13.48 MB / 0.5417 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 () * 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.0003643/0.6265, allocations: 0.6165 MB / 0.8693 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001443/0.6267, allocations: 19.92 kB / 0.8694 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6267, allocations: 0 / 0.8694 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.298e-05/0.6268, allocations: 8 kB / 0.8694 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.6269, allocations: 4 kB / 0.8694 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002786/0.6272, allocations: 82.02 kB / 0.8694 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.6274, allocations: 0.6768 MB / 0.8701 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.691e-05/0.6274, allocations: 4.125 kB / 0.8701 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.6275, allocations: 15.38 kB / 0.8701 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.6275, allocations: 0 / 0.8701 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.6465, allocations: 0.7466 MB / 0.8709 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.6467, allocations: 192.6 kB / 0.871 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/2.214, allocations: 1.688 kB / 0.871 GB, free: 11.05 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)