Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_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.001597/0.001597, allocations: 109.8 kB / 17.33 MB, free: 6.023 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.001989/0.001989, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.363/1.363, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1982/0.1982, allocations: 44.18 MB / 336.2 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 56.41 kB / 408 MB, free: 27.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1059, allocations: 60.83 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04574/0.1516, allocations: 28.25 MB / 497.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02183/0.1735, allocations: 13.41 MB / 0.4985 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005072/0.1741, allocations: 15.88 kB / 0.4985 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008463/0.1749, allocations: 218.9 kB / 0.4987 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009994/0.185, allocations: 3.222 MB / 0.5019 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2018/0.3868, allocations: 2.12 MB / 0.504 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.388, allocations: 0.9021 MB / 0.5048 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.3884, allocations: 242.1 kB / 0.5051 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000763/0.3892, allocations: 445.2 kB / 0.5055 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.3896, allocations: 282.3 kB / 0.5058 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-05/0.3896, allocations: 33.03 kB / 0.5058 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01322/0.4029, allocations: 7.117 MB / 0.5127 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.4031, allocations: 101.5 kB / 0.5128 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004546/0.4035, allocations: 224 kB / 0.5131 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.414, allocations: 4.431 MB / 0.5174 GB, free: 13.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4141, allocations: 1.125 kB / 0.5174 GB, free: 13.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4141, allocations: 0 / 0.5174 GB, free: 13.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.4141, allocations: 1.062 kB / 0.5174 GB, free: 13.76 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.003942/0.4181, allocations: 1.243 MB / 0.5186 GB, free: 13.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.4181, allocations: 10.12 kB / 0.5186 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.759e-05/0.4182, allocations: 66.64 kB / 0.5187 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.4199, allocations: 215.3 kB / 0.5189 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.4203, allocations: 359 kB / 0.5192 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.4204, allocations: 26.97 kB / 0.5192 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.4204, allocations: 30.34 kB / 0.5193 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.4219, allocations: 0.6011 MB / 0.5199 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.4219, allocations: 1.375 kB / 0.5199 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.236e-05/0.422, allocations: 13.03 kB / 0.5199 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.422, allocations: 6.875 kB / 0.5199 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.4236, allocations: 0.5445 MB / 0.5204 GB, free: 12.61 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.002493/0.4261, allocations: 2.635 MB / 0.523 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.4276, allocations: 468.5 kB / 0.5234 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004325/0.4281, allocations: 194.2 kB / 0.5236 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04369/0.4718, allocations: 24.22 MB / 0.5473 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.4718, allocations: 38.5 kB / 0.5473 GB, free: 6.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.116e-06/0.4719, allocations: 5.531 kB / 0.5473 GB, free: 6.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00293/0.4748, allocations: 0.8169 MB / 0.5481 GB, free: 5.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.4749, allocations: 106.8 kB / 0.5482 GB, free: 5.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.4752, allocations: 309.5 kB / 0.5485 GB, free: 5.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.4753, allocations: 37.14 kB / 0.5485 GB, free: 5.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.4754, allocations: 203.2 kB / 0.5487 GB, free: 4.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.615e-05/0.4755, allocations: 82.22 kB / 0.5488 GB, free: 4.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.4756, allocations: 76.12 kB / 0.5489 GB, free: 4.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4757, allocations: 341 kB / 0.5492 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.4761, allocations: 151.2 kB / 0.5494 GB, free: 4.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.4766, allocations: 239 kB / 0.5496 GB, free: 4.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.4775, allocations: 384.7 kB / 0.5499 GB, free: 3.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4775, allocations: 0 / 0.5499 GB, free: 3.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001022/0.4785, allocations: 437 kB / 0.5504 GB, free: 3.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4785, allocations: 11.94 kB / 0.5504 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4786, allocations: 0 / 0.5504 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.4786, allocations: 11.03 kB / 0.5504 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.479, allocations: 94.66 kB / 0.5505 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.479, allocations: 7.938 kB / 0.5505 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.4794, allocations: 55.52 kB / 0.5505 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.4794, allocations: 15.56 kB / 0.5506 GB, free: 3.262 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.0001813/0.4796, allocations: 166.2 kB / 0.5507 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/0.4797, allocations: 31.62 kB / 0.5507 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002356/0.482, allocations: 1.922 MB / 0.5526 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.978e-05/0.4821, allocations: 35.88 kB / 0.5527 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4821, allocations: 0 / 0.5527 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4821, allocations: 0 / 0.5527 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009951/0.4831, allocations: 1.02 MB / 0.5536 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4831, allocations: 0 / 0.5536 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003254/0.4835, allocations: 75.92 kB / 0.5537 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.4835, allocations: 4 kB / 0.5537 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.4835, allocations: 8 kB / 0.5537 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4835, allocations: 6.938 kB / 0.5537 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4835, allocations: 3.984 kB / 0.5537 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.485, allocations: 1.091 MB / 0.5548 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/0.4852, allocations: 168.8 kB / 0.555 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.4852, allocations: 19.75 kB / 0.555 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.4856, allocations: 47.84 kB / 0.555 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.799e-05/0.4857, allocations: 35.89 kB / 0.5551 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.4857, allocations: 15.98 kB / 0.5551 GB, free: 15.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003301/0.486, allocations: 327.1 kB / 0.5554 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.486, allocations: 0 / 0.5554 GB, free: 14.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003869/0.4899, allocations: 0.9916 MB / 0.5564 GB, free: 13.79 MB / 414.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.007784/0.4977, allocations: 2.724 MB / 0.559 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.4993, allocations: 0.6204 MB / 0.5596 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4993, allocations: 4 kB / 0.5596 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006767/0.5, allocations: 0.5182 MB / 0.5601 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.5012, allocations: 222.8 kB / 0.5604 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008524/0.5098, allocations: 5.394 MB / 0.5656 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.5102, allocations: 0.9638 MB / 0.5666 GB, free: 3.324 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004626/0.5107, allocations: 278.5 kB / 0.5668 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.511, allocations: 263.3 kB / 0.5671 GB, free: 2.805 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.511, allocations: 0 / 0.5671 GB, free: 2.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07397/0.585, allocations: 46.38 MB / 0.6124 GB, free: 4.73 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.5852, allocations: 259.5 kB / 0.6126 GB, free: 4.445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.183/4.768, allocations: 0 / 0.6126 GB, free: 4.445 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches