Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_Buildings_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004591/0.004591, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001076/0.001076, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.166/2.166, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.631/0.6322, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00182/0.6341, allocations: 1.248 MB / 1.089 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007635/0.6348, allocations: 0.5914 MB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.107e-05/0.6349, allocations: 0 / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.6349, allocations: 0.7969 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.409e-05/0.6349, allocations: 4.969 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004391/0.6354, allocations: 139.2 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.636e-05/0.6354, allocations: 20.91 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.434e-05/0.6355, allocations: 7.281 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.545e-05/0.6355, allocations: 2.125 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.865e-05/0.6355, allocations: 7.203 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.698e-06/0.6356, allocations: 1.125 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004941/0.6361, allocations: 336.6 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.6361, allocations: 0.8438 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.6361, allocations: 14.89 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.6363, allocations: 137.3 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6363, allocations: 0 / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6364, allocations: 4 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.6364, allocations: 1.094 kB / 1.09 GB, free: 3.746 MB / 0.8575 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.0002665/0.6366, allocations: 350.7 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.6367, allocations: 9.094 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.25e-05/0.6367, allocations: 36.3 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.928e-05/0.6367, allocations: 2 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.435e-05/0.6368, allocations: 162.7 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.6368, allocations: 384 / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.6368, allocations: 2.016 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.99e-05/0.6369, allocations: 39.86 kB / 1.09 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.6369, allocations: 3.938 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.6369, allocations: 0 / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-06/0.6369, allocations: 0 / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.404e-05/0.6369, allocations: 4.594 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.361e-05/0.637, allocations: 151.2 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.907e-05/0.6371, allocations: 24.31 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.6371, allocations: 11.69 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.6371, allocations: 1.062 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.6371, allocations: 36.45 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.6371, allocations: 0 / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001097/0.6373, allocations: 45.17 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.849e-05/0.6373, allocations: 55.91 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.851e-05/0.6373, allocations: 98.42 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-06/0.6373, allocations: 29.83 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.052e-05/0.6374, allocations: 81.17 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.855e-05/0.6374, allocations: 9.734 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.6374, allocations: 12.61 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.266e-05/0.6374, allocations: 316.9 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.6375, allocations: 1.891 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.774e-06/0.6375, allocations: 2.188 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.515e-05/0.6375, allocations: 18.58 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.6375, allocations: 1.125 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.352e-05/0.6376, allocations: 39.8 kB / 1.091 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6376, allocations: 12.81 kB / 1.091 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.6376, allocations: 5.141 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.6376, allocations: 0.9375 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.6377, allocations: 10 kB / 1.091 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001984/0.638, allocations: 0.5832 MB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.787e-05/0.638, allocations: 1.188 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.638, allocations: 0 / 1.092 GB, free: 1.5 MB / 0.8575 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.638, allocations: 117.2 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.638, allocations: 1.438 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.322e-05/0.6381, allocations: 47.47 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.6381, allocations: 1.125 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6382, allocations: 8.125 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6382, allocations: 5.641 kB / 1.092 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.846e-05/0.6382, allocations: 150.3 kB / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.6382, allocations: 0.875 kB / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.6383, allocations: 10.33 kB / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.6383, allocations: 0 / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.6383, allocations: 0.9688 kB / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002245/0.6385, allocations: 0.5873 MB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6386, allocations: 12.94 kB / 1.093 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.561e-05/0.6386, allocations: 61.44 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.6387, allocations: 77.86 kB / 1.093 GB, free: 16.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.707e-06/0.6387, allocations: 1 kB / 1.093 GB, free: 16.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.557e-05/0.6387, allocations: 1.875 kB / 1.093 GB, free: 16.37 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.6387, allocations: 5.859 kB / 1.093 GB, free: 16.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.6387, allocations: 0 / 1.093 GB, free: 16.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.369e-05/0.6388, allocations: 82.55 kB / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6388, allocations: 0 / 1.093 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001881/0.639, allocations: 10.66 kB / 1.093 GB, free: 16.28 MB / 0.8731 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003338/0.6393, allocations: 0.6137 MB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001471/0.6394, allocations: 16.83 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.6395, allocations: 0 / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.643e-05/0.6396, allocations: 13.77 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.6397, allocations: 13.72 kB / 1.094 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003431/0.64, allocations: 150.2 kB / 1.094 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.6403, allocations: 0.6815 MB / 1.095 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.316e-05/0.6403, allocations: 5.062 kB / 1.095 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.7e-05/0.6403, allocations: 8.234 kB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.6403, allocations: 1.125 kB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8829/1.523, allocations: 1.378 MB / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.59/19.11, allocations: 7.953 kB / 1.096 GB, free: 14.43 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches