Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.0009915/0.0009916, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 183.6 kB / 16.92 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.4 MB / 223.1 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3138/0.3138, allocations: 43.59 MB / 315 MB, free: 9.09 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000484/0.0004841, allocations: 16.36 kB / 384.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09822, allocations: 58.87 MB / 443.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2061/0.3044, allocations: 28.3 MB / 471.9 MB, free: 33.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.3169, allocations: 14.03 MB / 485.9 MB, free: 25.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003877/0.3173, allocations: 11.28 kB / 485.9 MB, free: 25.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005978/0.3179, allocations: 214.5 kB / 486.1 MB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00719/0.3251, allocations: 2.92 MB / 489 MB, free: 23.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005515/0.3306, allocations: 1.976 MB / 491 MB, free: 22.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.3317, allocations: 1.138 MB / 492.1 MB, free: 22.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.332, allocations: 204.9 kB / 492.3 MB, free: 22.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006044/0.3326, allocations: 402 kB / 492.7 MB, free: 22.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.333, allocations: 274.6 kB / 493 MB, free: 22.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.616e-05/0.333, allocations: 16.59 kB / 493 MB, free: 22.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01539/0.3484, allocations: 7.109 MB / 0.4884 GB, free: 20.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.3487, allocations: 87.19 kB / 0.4885 GB, free: 20.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000379/0.3491, allocations: 223.2 kB / 0.4887 GB, free: 20.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.3614, allocations: 4.381 MB / 0.493 GB, free: 18.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3614, allocations: 4 kB / 0.493 GB, free: 18.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3614, allocations: 0 / 0.493 GB, free: 18.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3614, allocations: 0 / 0.493 GB, free: 18.89 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005805/0.3672, allocations: 1.174 MB / 0.4941 GB, free: 18.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3673, allocations: 8.688 kB / 0.4941 GB, free: 18.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.469e-05/0.3674, allocations: 69.09 kB / 0.4942 GB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001703/0.3691, allocations: 221.7 kB / 0.4944 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.3696, allocations: 375.2 kB / 0.4948 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.3696, allocations: 22.34 kB / 0.4948 GB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.3697, allocations: 34.55 kB / 0.4948 GB, free: 17.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3713, allocations: 0.6188 MB / 0.4954 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.3713, allocations: 3.938 kB / 0.4954 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.3713, allocations: 12.38 kB / 0.4954 GB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.3713, allocations: 11.78 kB / 0.4955 GB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.373, allocations: 0.5918 MB / 0.496 GB, free: 17.3 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.3755, allocations: 2.641 MB / 0.4986 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.3771, allocations: 0.5007 MB / 0.4991 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004693/0.3775, allocations: 219.5 kB / 0.4993 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0469/0.4244, allocations: 24.42 MB / 0.5232 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4245, allocations: 37.75 kB / 0.5232 GB, free: 11.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.4245, allocations: 0 / 0.5232 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003002/0.4275, allocations: 0.8923 MB / 0.5241 GB, free: 10.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.4276, allocations: 106.8 kB / 0.5242 GB, free: 10.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003342/0.4279, allocations: 316.5 kB / 0.5245 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.428, allocations: 25.7 kB / 0.5245 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4281, allocations: 204.2 kB / 0.5247 GB, free: 9.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/0.4282, allocations: 90.69 kB / 0.5248 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.4283, allocations: 33.7 kB / 0.5248 GB, free: 9.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4284, allocations: 342.8 kB / 0.5251 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004517/0.4288, allocations: 171.4 kB / 0.5253 GB, free: 9.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/0.4293, allocations: 259 kB / 0.5255 GB, free: 8.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009189/0.4303, allocations: 423.3 kB / 0.526 GB, free: 8.504 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.4303, allocations: 0 / 0.526 GB, free: 8.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001063/0.4314, allocations: 481.6 kB / 0.5264 GB, free: 8.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4314, allocations: 4 kB / 0.5264 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4314, allocations: 4 kB / 0.5264 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.4314, allocations: 7.938 kB / 0.5264 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.4318, allocations: 105.3 kB / 0.5265 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.4318, allocations: 7.984 kB / 0.5265 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.4322, allocations: 67.64 kB / 0.5266 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.4322, allocations: 16 kB / 0.5266 GB, free: 7.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.4324, allocations: 169.6 kB / 0.5268 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.4325, allocations: 31.62 kB / 0.5268 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002491/0.435, allocations: 1.964 MB / 0.5287 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.142e-05/0.435, allocations: 36.38 kB / 0.5288 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.4351, allocations: 0 / 0.5288 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4351, allocations: 0 / 0.5288 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009988/0.4361, allocations: 1.018 MB / 0.5298 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.4361, allocations: 1.75 kB / 0.5298 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.4364, allocations: 95.86 kB / 0.5298 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4365, allocations: 3.938 kB / 0.5299 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.4365, allocations: 8 kB / 0.5299 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.4365, allocations: 3.938 kB / 0.5299 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4365, allocations: 7.984 kB / 0.5299 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.438, allocations: 1.14 MB / 0.531 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.4383, allocations: 223.5 kB / 0.5312 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.4383, allocations: 4 kB / 0.5312 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.4387, allocations: 51.89 kB / 0.5312 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.345e-05/0.4388, allocations: 31.95 kB / 0.5313 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.4388, allocations: 8 kB / 0.5313 GB, free: 2.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.4391, allocations: 335.1 kB / 0.5316 GB, free: 2.605 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4392, allocations: 0 / 0.5316 GB, free: 2.605 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004325/0.4435, allocations: 0.9877 MB / 0.5326 GB, free: 1.617 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009841/0.4533, allocations: 2.752 MB / 0.5353 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.4549, allocations: 0.6537 MB / 0.5359 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.4549, allocations: 8 kB / 0.5359 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.4557, allocations: 0.5415 MB / 0.5364 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.457, allocations: 206.3 kB / 0.5366 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.4672, allocations: 5.518 MB / 0.542 GB, free: 7.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.4678, allocations: 0.9716 MB / 0.543 GB, free: 6.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006056/0.4684, allocations: 273.9 kB / 0.5432 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/0.4688, allocations: 259.3 kB / 0.5435 GB, free: 6.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4688, allocations: 4 kB / 0.5435 GB, free: 6.266 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07315/0.542, allocations: 45.73 MB / 0.5881 GB, free: 8.539 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.5422, allocations: 251.9 kB / 0.5884 GB, free: 8.285 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.001/4.543, allocations: 3.938 kB / 0.5884 GB, free: 8.281 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches