Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.0007261/0.0007261, 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.0007298/0.0007298, allocations: 169.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.8431/0.8431, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.723/1.723, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.009e-05/1.14e-05, allocations: 4.812 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001346/0.001357, allocations: 1.263 MB / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0005878/0.001945, allocations: 0.5183 MB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.131e-05/0.001966, allocations: 0 / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.001982, allocations: 7.875 kB / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.528e-05/0.002018, allocations: 4 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.002377, allocations: 147.2 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 5.042e-05/0.002427, allocations: 11.92 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.002462, allocations: 0 / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.616e-05/0.002488, allocations: 4 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.581e-05/0.002524, allocations: 4 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.002535, allocations: 0 / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.002786, allocations: 271.4 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.002797, allocations: 0 / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.357e-05/0.00281, allocations: 4 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.002971, allocations: 151.5 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.002974, allocations: 7.938 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of FrontEnd: time 5.71e-07/0.002974, allocations: 0 / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.002978, allocations: 0 / 1.002 GB, free: 11.09 MB / 0.9636 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.0002669/0.003244, allocations: 272.3 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.003279, allocations: 8.75 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.43e-05/0.003303, allocations: 30.75 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.728e-05/0.00332, allocations: 0.9375 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.402e-05/0.003394, allocations: 121.7 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.003403, allocations: 4.312 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-06/0.003409, allocations: 4.375 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.099e-05/0.00348, allocations: 34.27 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.003486, allocations: 192 / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.003493, allocations: 384 / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.003499, allocations: 4.125 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.982e-05/0.003519, allocations: 4 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.003625, allocations: 128.7 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 3.897e-05/0.003664, allocations: 18.61 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.538e-05/0.00368, allocations: 12.92 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.003697, allocations: 0 / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.003713, allocations: 34.56 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.003714, allocations: 7.984 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001092/0.003823, allocations: 45.62 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.003849, allocations: 55.34 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.366e-05/0.003892, allocations: 93.86 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.0039, allocations: 25.7 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 1.9e-05/0.003919, allocations: 80.14 kB / 1.003 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.003939, allocations: 7.938 kB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.003962, allocations: 21.7 kB / 1.003 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.464e-05/0.004027, allocations: 315.1 kB / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-06/0.004036, allocations: 7.938 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.004041, allocations: 0 / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.362e-05/0.004065, allocations: 16.86 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.004066, allocations: 0 / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.52e-05/0.004101, allocations: 41.62 kB / 1.003 GB, free: 9.531 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.004112, allocations: 4 kB / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.004115, allocations: 0 / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.004125, allocations: 0 / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.004241, allocations: 16.03 kB / 1.003 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002394/0.004481, allocations: 0.5899 MB / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-06/0.004491, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.004495, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 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.729e-05/0.004542, allocations: 109.9 kB / 1.004 GB, free: 8.781 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-06/0.004547, allocations: 7.891 kB / 1.004 GB, free: 8.773 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.976e-05/0.004617, allocations: 48.94 kB / 1.004 GB, free: 8.715 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.004618, allocations: 3.938 kB / 1.004 GB, free: 8.711 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.004621, allocations: 4.125 kB / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.004623, allocations: 0 / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.482e-05/0.004678, allocations: 120.8 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.00468, allocations: 3.938 kB / 1.004 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.355e-05/0.004723, allocations: 11.98 kB / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.004725, allocations: 0 / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-06/0.004729, allocations: 0 / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001697/0.004899, allocations: 0.586 MB / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.004899, allocations: 0 / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.169e-05/0.004941, allocations: 69.19 kB / 1.005 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-06/0.004945, allocations: 4 kB / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-06/0.004952, allocations: 0 / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-06/0.00496, allocations: 4 kB / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-06/0.004969, allocations: 0 / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.004972, allocations: 7.984 kB / 1.005 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.122e-05/0.004993, allocations: 75.28 kB / 1.005 GB, free: 7.746 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.004993, allocations: 0 / 1.005 GB, free: 7.746 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001198/0.005113, allocations: 15.88 kB / 1.005 GB, free: 7.73 MB / 0.9636 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.0002444/0.005358, allocations: 0.6125 MB / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 9.893e-05/0.005457, allocations: 15.98 kB / 1.006 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.005458, allocations: 0 / 1.006 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.132e-05/0.005489, allocations: 15.98 kB / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.319e-05/0.005582, allocations: 0 / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/0.005883, allocations: 143.8 kB / 1.006 GB, free: 6.879 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.159e-05/0.005915, allocations: 67.48 kB / 1.006 GB, free: 6.793 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.173e-05/0.005927, allocations: 7.938 kB / 1.006 GB, free: 6.785 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.964e-05/0.005946, allocations: 8.5 kB / 1.006 GB, free: 6.777 MB / 0.9636 GB Notification: Performance of SimCode: time 4.81e-07/0.005947, allocations: 0 / 1.006 GB, free: 6.777 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01261/0.01856, allocations: 1.946 MB / 1.008 GB, free: 5.02 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.227/7.245, allocations: 8.047 kB / 1.008 GB, free: 5.012 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.15855503641069]