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.001685/0.001685, allocations: 109.8 kB / 16.41 MB, free: 6.5 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.001858/0.001858, allocations: 191.4 kB / 17.34 MB, free: 5.738 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.394/1.394, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.213/0.213, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 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.002058/0.002059, allocations: 73.89 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1087, allocations: 57.8 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03245/0.1412, allocations: 28.14 MB / 0.5149 GB, free: 52 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01689/0.1581, allocations: 13.3 MB / 0.5279 GB, free: 2.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.1585, allocations: 7.938 kB / 0.5279 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007344/0.1593, allocations: 250.4 kB / 0.5281 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2404/0.3997, allocations: 3.642 MB / 0.5317 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006167/0.4059, allocations: 2.368 MB / 0.534 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.4071, allocations: 0.8961 MB / 0.5349 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.4075, allocations: 246.4 kB / 0.5351 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007234/0.4082, allocations: 442.8 kB / 0.5355 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.4086, allocations: 268.1 kB / 0.5358 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.627e-05/0.4087, allocations: 34.06 kB / 0.5358 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01537/0.4241, allocations: 7.22 MB / 0.5429 GB, free: 4.453 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.4244, allocations: 103.8 kB / 0.543 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005033/0.4249, allocations: 223.6 kB / 0.5432 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.4368, allocations: 4.418 MB / 0.5475 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4369, allocations: 4.094 kB / 0.5475 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4369, allocations: 0 / 0.5475 GB, free: 4.266 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.4369, allocations: 2.906 kB / 0.5475 GB, free: 4.266 MB / 414.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.004439/0.4413, allocations: 1.28 MB / 0.5487 GB, free: 3.504 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4414, allocations: 13.39 kB / 0.5488 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.986e-05/0.4415, allocations: 63.48 kB / 0.5488 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/0.4432, allocations: 215.8 kB / 0.549 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.4437, allocations: 382.4 kB / 0.5494 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.4438, allocations: 25.16 kB / 0.5494 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.4438, allocations: 28.75 kB / 0.5494 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.4454, allocations: 0.5926 MB / 0.55 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.4454, allocations: 3.375 kB / 0.55 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/0.4454, allocations: 15.09 kB / 0.55 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.4455, allocations: 7.906 kB / 0.55 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.447, allocations: 0.542 MB / 0.5506 GB, free: 3.059 MB / 414.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.002469/0.4495, allocations: 2.632 MB / 0.5531 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.451, allocations: 471.3 kB / 0.5536 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/0.4515, allocations: 193.3 kB / 0.5538 GB, free: 1.105 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05231/0.5038, allocations: 24.3 MB / 0.5775 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.5039, allocations: 34.44 kB / 0.5775 GB, free: 14.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.224e-06/0.5039, allocations: 0 / 0.5775 GB, free: 14.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.00296/0.5069, allocations: 0.8266 MB / 0.5783 GB, free: 13.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/0.507, allocations: 106.8 kB / 0.5784 GB, free: 13.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.5074, allocations: 319.3 kB / 0.5788 GB, free: 13.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.5074, allocations: 29.64 kB / 0.5788 GB, free: 13.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.5076, allocations: 207.1 kB / 0.579 GB, free: 13.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/0.5077, allocations: 89.97 kB / 0.5791 GB, free: 13.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.5078, allocations: 65.25 kB / 0.5791 GB, free: 13.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.508, allocations: 346.6 kB / 0.5795 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/0.5084, allocations: 146.1 kB / 0.5796 GB, free: 12.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.509, allocations: 249.2 kB / 0.5798 GB, free: 12.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009895/0.51, allocations: 379.1 kB / 0.5802 GB, free: 12.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.51, allocations: 0 / 0.5802 GB, free: 12.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001112/0.5111, allocations: 453.5 kB / 0.5806 GB, free: 11.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.5111, allocations: 10.69 kB / 0.5806 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.5111, allocations: 4 kB / 0.5806 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.5112, allocations: 7.938 kB / 0.5806 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.5115, allocations: 86.09 kB / 0.5807 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.5116, allocations: 7.094 kB / 0.5807 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.5119, allocations: 47.12 kB / 0.5808 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.5119, allocations: 19.23 kB / 0.5808 GB, free: 11.54 MB / 446.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.0001951/0.5121, allocations: 165.1 kB / 0.581 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.588e-05/0.5122, allocations: 43.75 kB / 0.581 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.5148, allocations: 1.92 MB / 0.5829 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.421e-05/0.5148, allocations: 34.52 kB / 0.5829 GB, free: 9.871 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5149, allocations: 0 / 0.5829 GB, free: 9.871 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.5149, allocations: 3.984 kB / 0.5829 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.516, allocations: 1.013 MB / 0.5839 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.516, allocations: 4 kB / 0.5839 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.5164, allocations: 78.83 kB / 0.584 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.5164, allocations: 0 / 0.584 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5164, allocations: 8 kB / 0.584 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.5164, allocations: 3.938 kB / 0.584 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.5164, allocations: 0 / 0.584 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.5181, allocations: 1.104 MB / 0.5851 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.5183, allocations: 168.1 kB / 0.5852 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.091e-05/0.5184, allocations: 31.66 kB / 0.5853 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.5187, allocations: 35.91 kB / 0.5853 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.5188, allocations: 31.95 kB / 0.5853 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.5188, allocations: 15.98 kB / 0.5853 GB, free: 7.316 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003747/0.5192, allocations: 323.1 kB / 0.5856 GB, free: 7.004 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5192, allocations: 0 / 0.5856 GB, free: 7.004 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004514/0.5237, allocations: 0.9982 MB / 0.5866 GB, free: 6.004 MB / 446.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.008731/0.5325, allocations: 2.738 MB / 0.5893 GB, free: 3.355 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.534, allocations: 0.6046 MB / 0.5899 GB, free: 2.762 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.534, allocations: 4 kB / 0.5899 GB, free: 2.758 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007809/0.5348, allocations: 0.5208 MB / 0.5904 GB, free: 2.246 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.5361, allocations: 225.4 kB / 0.5906 GB, free: 2.031 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.5462, allocations: 5.054 MB / 0.5955 GB, free: 12.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005772/0.5468, allocations: 0.956 MB / 0.5965 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005077/0.5474, allocations: 273.9 kB / 0.5967 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.5477, allocations: 259.3 kB / 0.597 GB, free: 11.37 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5477, allocations: 4 kB / 0.597 GB, free: 11.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08993/0.6377, allocations: 46.71 MB / 0.6426 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.98, allocations: 4.062 kB / 0.6426 GB, free: 12.65 MB / 0.4981 GB (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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches