Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008038/0.0008038, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8422/0.8422, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.687/1.687, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_12_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_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.336e-05/2.523e-05, allocations: 6.219 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001846/0.001871, allocations: 1.283 MB / 0.9822 GB, free: 1.281 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007273/0.002599, allocations: 0.5214 MB / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.468e-05/0.002623, allocations: 0 / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.374e-05/0.002647, allocations: 0 / 0.9827 GB, free: 0.7578 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.448e-05/0.002691, allocations: 3.938 kB / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.003164, allocations: 135.3 kB / 0.9829 GB, free: 0.6211 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 5.623e-05/0.00322, allocations: 11.94 kB / 0.9829 GB, free: 0.6094 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.00326, allocations: 8 kB / 0.9829 GB, free: 0.6016 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.93e-05/0.003289, allocations: 3.984 kB / 0.9829 GB, free: 0.5977 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.219e-05/0.003331, allocations: 11.92 kB / 0.9829 GB, free: 0.5859 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.003343, allocations: 0 / 0.9829 GB, free: 0.5859 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003048/0.003648, allocations: 267.4 kB / 0.9831 GB, free: 332 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.003663, allocations: 0 / 0.9831 GB, free: 332 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.628e-05/0.003679, allocations: 7.938 kB / 0.9832 GB, free: 324 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.003869, allocations: 143.6 kB / 0.9833 GB, free: 180 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.003872, allocations: 7.984 kB / 0.9833 GB, free: 172 kB / 0.9323 GB Notification: Performance of FrontEnd: time 9.72e-07/0.003873, allocations: 0 / 0.9833 GB, free: 172 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.003877, allocations: 0 / 0.9833 GB, free: 172 kB / 0.9323 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.0003409/0.004218, allocations: 282 kB / 0.9836 GB, free: 15.86 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.004262, allocations: 8.031 kB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.00429, allocations: 30.75 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.209e-05/0.004312, allocations: 4.938 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.788e-05/0.00439, allocations: 101.8 kB / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.0044, allocations: 384 / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.004408, allocations: 4.375 kB / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.904e-05/0.004497, allocations: 42.17 kB / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.004503, allocations: 192 / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-06/0.004511, allocations: 8.375 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.004516, allocations: 4.125 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.659e-05/0.004543, allocations: 0 / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001243/0.004667, allocations: 120.8 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.816e-05/0.004715, allocations: 26.59 kB / 0.9839 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.00473, allocations: 4.859 kB / 0.9839 GB, free: 15.42 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.004749, allocations: 0 / 0.9839 GB, free: 15.42 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.004771, allocations: 46.5 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 5.01e-07/0.004771, allocations: 0 / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0001281/0.004899, allocations: 37.78 kB / 0.984 GB, free: 15.32 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.00493, allocations: 59.34 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.47e-05/0.004984, allocations: 101.8 kB / 0.9841 GB, free: 15.14 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.004994, allocations: 25.7 kB / 0.9842 GB, free: 15.11 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.231e-05/0.005016, allocations: 80.14 kB / 0.9842 GB, free: 15.03 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.005039, allocations: 7.938 kB / 0.9842 GB, free: 15.02 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.005061, allocations: 13.72 kB / 0.9843 GB, free: 15 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.239e-05/0.005133, allocations: 314.8 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.005143, allocations: 3.984 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-06/0.005151, allocations: 4 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.833e-05/0.005179, allocations: 20.98 kB / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.005181, allocations: 0 / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.864e-05/0.00522, allocations: 37.66 kB / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.005234, allocations: 7.938 kB / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.005239, allocations: 4 kB / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.005254, allocations: 0 / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.005423, allocations: 15.92 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003241/0.005747, allocations: 0.5821 MB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.262e-05/0.005759, allocations: 4 kB / 0.9852 GB, free: 13.97 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.005767, allocations: 4.125 kB / 0.9852 GB, free: 13.97 MB / 0.948 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 7.476e-05/0.005842, allocations: 113.9 kB / 0.9853 GB, free: 13.85 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-06/0.005849, allocations: 7.922 kB / 0.9853 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.005949, allocations: 41.02 kB / 0.9854 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.005952, allocations: 0 / 0.9854 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.005958, allocations: 0 / 0.9854 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.005962, allocations: 0 / 0.9854 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.751e-05/0.006039, allocations: 120.8 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.006041, allocations: 3.938 kB / 0.9855 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.571e-05/0.006097, allocations: 16.02 kB / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.006099, allocations: 0 / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.006106, allocations: 4 kB / 0.9855 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002326/0.006338, allocations: 0.5898 MB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.00634, allocations: 0 / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.425e-05/0.006395, allocations: 65.09 kB / 0.9862 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.011e-05/0.006405, allocations: 4 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.00642, allocations: 0 / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-06/0.006427, allocations: 0 / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.006442, allocations: 12.06 kB / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-06/0.006444, allocations: 0 / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.866e-05/0.006473, allocations: 75.28 kB / 0.9862 GB, free: 12.83 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.006473, allocations: 3.938 kB / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001333/0.006606, allocations: 15.88 kB / 0.9863 GB, free: 12.81 MB / 0.948 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.0002967/0.006903, allocations: 0.6091 MB / 0.9869 GB, free: 12.17 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.007027, allocations: 19.98 kB / 0.9869 GB, free: 12.15 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.007029, allocations: 8.125 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.128e-05/0.00706, allocations: 11.98 kB / 0.9869 GB, free: 12.13 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001072/0.007167, allocations: 7.938 kB / 0.9869 GB, free: 12.12 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003453/0.007512, allocations: 134.4 kB / 0.987 GB, free: 11.95 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.05e-05/0.007543, allocations: 55.36 kB / 0.9871 GB, free: 11.88 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.531e-05/0.007558, allocations: 3.984 kB / 0.9871 GB, free: 11.88 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.076e-05/0.007579, allocations: 12.56 kB / 0.9871 GB, free: 11.86 MB / 0.948 GB Notification: Performance of SimCode: time 4.71e-07/0.007579, allocations: 0 / 0.9871 GB, free: 11.86 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01418/0.02176, allocations: 1.954 MB / 0.989 GB, free: 10.1 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.237/7.259, allocations: 11.06 kB / 0.989 GB, free: 10.09 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.161608766764402]