Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001046, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2094/0.2094, allocations: 46.09 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 78.44 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1171, allocations: 62.45 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03198/0.1491, allocations: 28.26 MB / 0.4965 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2154/0.3646, allocations: 13.3 MB / 0.5095 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004777/0.3651, allocations: 10.16 kB / 0.5095 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008427/0.3661, allocations: 250.3 kB / 0.5097 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01069/0.3768, allocations: 3.667 MB / 0.5133 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006381/0.3832, allocations: 2.372 MB / 0.5156 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.3846, allocations: 0.901 MB / 0.5165 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/0.3851, allocations: 245.2 kB / 0.5167 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009396/0.3861, allocations: 449.2 kB / 0.5172 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.3866, allocations: 271.4 kB / 0.5174 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.629e-05/0.3867, allocations: 36.25 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01551/0.4022, allocations: 7.061 MB / 0.5244 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.4024, allocations: 106 kB / 0.5245 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004332/0.4028, allocations: 217.6 kB / 0.5247 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4154, allocations: 4.425 MB / 0.529 GB, free: 8.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4154, allocations: 1.875 kB / 0.529 GB, free: 8.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4154, allocations: 0 / 0.529 GB, free: 8.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.4154, allocations: 0 / 0.529 GB, free: 8.141 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.003883/0.4193, allocations: 1.246 MB / 0.5302 GB, free: 7.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.4194, allocations: 9.625 kB / 0.5302 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.304e-05/0.4194, allocations: 65.72 kB / 0.5303 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.4211, allocations: 212.5 kB / 0.5305 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.4215, allocations: 372.5 kB / 0.5308 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.4216, allocations: 27.12 kB / 0.5309 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.4216, allocations: 26.44 kB / 0.5309 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.423, allocations: 0.5869 MB / 0.5315 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.423, allocations: 9.172 kB / 0.5315 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.4231, allocations: 12.72 kB / 0.5315 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.4231, allocations: 7.031 kB / 0.5315 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.4246, allocations: 0.55 MB / 0.532 GB, free: 6.062 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.002316/0.427, allocations: 2.626 MB / 0.5346 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.4284, allocations: 472.8 kB / 0.535 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004222/0.4289, allocations: 200.3 kB / 0.5352 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04946/0.4783, allocations: 26.77 MB / 0.5614 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.4784, allocations: 39.38 kB / 0.5614 GB, free: 8.387 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.4784, allocations: 4 kB / 0.5614 GB, free: 8.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002964/0.4814, allocations: 0.8174 MB / 0.5622 GB, free: 7.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.4815, allocations: 110.8 kB / 0.5623 GB, free: 7.426 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/0.4819, allocations: 308.6 kB / 0.5626 GB, free: 7.121 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.4819, allocations: 29.7 kB / 0.5626 GB, free: 7.086 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.482, allocations: 214.8 kB / 0.5628 GB, free: 6.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.066e-05/0.4821, allocations: 77.91 kB / 0.5629 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.4822, allocations: 69.59 kB / 0.563 GB, free: 6.727 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.4824, allocations: 346.8 kB / 0.5633 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.4828, allocations: 149.7 kB / 0.5635 GB, free: 6.234 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.4833, allocations: 248.4 kB / 0.5637 GB, free: 5.953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.4843, allocations: 377.1 kB / 0.5641 GB, free: 5.551 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4843, allocations: 0 / 0.5641 GB, free: 5.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001214/0.4856, allocations: 444.8 kB / 0.5645 GB, free: 5.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4856, allocations: 4 kB / 0.5645 GB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.4856, allocations: 4 kB / 0.5645 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4856, allocations: 7.938 kB / 0.5645 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.486, allocations: 95.36 kB / 0.5646 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.486, allocations: 4 kB / 0.5646 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.4863, allocations: 51.59 kB / 0.5646 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.19e-05/0.4864, allocations: 16 kB / 0.5647 GB, free: 4.934 MB / 414.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.0001854/0.4866, allocations: 161.7 kB / 0.5648 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.323e-05/0.4867, allocations: 35.62 kB / 0.5648 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/0.4891, allocations: 1.924 MB / 0.5667 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.987e-05/0.4891, allocations: 39.88 kB / 0.5668 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4891, allocations: 0 / 0.5668 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4891, allocations: 0 / 0.5668 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009871/0.4901, allocations: 1.007 MB / 0.5677 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.4901, allocations: 0 / 0.5677 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.4905, allocations: 79.86 kB / 0.5678 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4905, allocations: 4 kB / 0.5678 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.4905, allocations: 12 kB / 0.5678 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.4905, allocations: 3.938 kB / 0.5678 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4905, allocations: 1.938 kB / 0.5678 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.4922, allocations: 1.1 MB / 0.5689 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4923, allocations: 163.8 kB / 0.5691 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-05/0.4924, allocations: 27.67 kB / 0.5691 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.4927, allocations: 35.91 kB / 0.5691 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.4929, allocations: 35.94 kB / 0.5692 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.4929, allocations: 12 kB / 0.5692 GB, free: 220 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003715/0.4933, allocations: 331.1 kB / 0.5695 GB, free: 15.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4933, allocations: 0 / 0.5695 GB, free: 15.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003553/0.4968, allocations: 0.9916 MB / 0.5705 GB, free: 14.9 MB / 430.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.007767/0.5046, allocations: 2.726 MB / 0.5731 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.5064, allocations: 0.6339 MB / 0.5737 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5065, allocations: 0 / 0.5737 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007316/0.5072, allocations: 0.5249 MB / 0.5743 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.5085, allocations: 225.4 kB / 0.5745 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008642/0.5172, allocations: 5.068 MB / 0.5794 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.5176, allocations: 0.9677 MB / 0.5804 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000467/0.5181, allocations: 272.7 kB / 0.5806 GB, free: 4.418 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.5184, allocations: 259.3 kB / 0.5809 GB, free: 4.164 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5184, allocations: 0 / 0.5809 GB, free: 4.164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07743/0.5959, allocations: 46.78 MB / 0.6266 GB, free: 5.52 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.651/10.25, allocations: 64 / 0.6266 GB, free: 5.52 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches