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.00118/0.00118, allocations: 106 kB / 15.98 MB, free: 6.34 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.001373/0.001373, allocations: 193.9 kB / 16.9 MB, free: 6.184 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.741/1.741, allocations: 205.1 MB / 222.8 MB, free: 4.695 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.4112/0.4112, allocations: 43.49 MB / 313.6 MB, free: 8.332 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.001681/0.001681, allocations: 68.23 kB / 382.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1651, allocations: 57.79 MB / 440.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.3104/0.4755, allocations: 28.25 MB / 468.4 MB, free: 34.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.492, allocations: 13.39 MB / 481.8 MB, free: 25.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005045/0.4926, allocations: 13.16 kB / 481.8 MB, free: 25.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009105/0.4935, allocations: 219 kB / 482 MB, free: 25.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.5065, allocations: 3.226 MB / 485.2 MB, free: 24.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007451/0.514, allocations: 2.115 MB / 487.3 MB, free: 23.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.5154, allocations: 0.8989 MB / 488.2 MB, free: 22.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004479/0.5158, allocations: 245.9 kB / 488.5 MB, free: 22.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008797/0.5167, allocations: 446.8 kB / 488.9 MB, free: 22.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003404/0.5171, allocations: 277.7 kB / 489.2 MB, free: 22.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.499e-05/0.5171, allocations: 36.06 kB / 489.2 MB, free: 22.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01641/0.5335, allocations: 7.116 MB / 496.3 MB, free: 20.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.5339, allocations: 102.9 kB / 496.4 MB, free: 20.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004776/0.5343, allocations: 222.7 kB / 496.6 MB, free: 20.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.5503, allocations: 4.426 MB / 0.4893 GB, free: 19.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.5504, allocations: 0 / 0.4893 GB, free: 19.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5504, allocations: 0 / 0.4893 GB, free: 19.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.5504, allocations: 0 / 0.4893 GB, free: 19.2 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.006482/0.5569, allocations: 1.245 MB / 0.4905 GB, free: 18.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.5569, allocations: 12.52 kB / 0.4905 GB, free: 18.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.459e-05/0.557, allocations: 65.22 kB / 0.4906 GB, free: 18.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001835/0.5589, allocations: 214.1 kB / 0.4908 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.5595, allocations: 357.7 kB / 0.4912 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/0.5595, allocations: 30.44 kB / 0.4912 GB, free: 18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.5596, allocations: 27.41 kB / 0.4912 GB, free: 18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.5614, allocations: 0.5905 MB / 0.4918 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.5614, allocations: 0 / 0.4918 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.5614, allocations: 16.72 kB / 0.4918 GB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.5615, allocations: 8.281 kB / 0.4918 GB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.5632, allocations: 0.549 MB / 0.4923 GB, free: 17.59 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.003029/0.5662, allocations: 2.623 MB / 0.4949 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.5679, allocations: 472.2 kB / 0.4954 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.5684, allocations: 197.2 kB / 0.4955 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04978/0.6182, allocations: 24.22 MB / 0.5192 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.6183, allocations: 36.75 kB / 0.5192 GB, free: 12.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 3.606e-06/0.6183, allocations: 0 / 0.5192 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003064/0.6214, allocations: 0.8134 MB / 0.52 GB, free: 11.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.6215, allocations: 113.5 kB / 0.5201 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.6219, allocations: 310.2 kB / 0.5204 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.6219, allocations: 31.2 kB / 0.5205 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.6221, allocations: 211.2 kB / 0.5207 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.776e-05/0.6222, allocations: 82.16 kB / 0.5207 GB, free: 11.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.6223, allocations: 76.06 kB / 0.5208 GB, free: 11.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.6225, allocations: 338.8 kB / 0.5211 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004459/0.6229, allocations: 152.8 kB / 0.5213 GB, free: 10.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.6235, allocations: 241.5 kB / 0.5215 GB, free: 10.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009016/0.6244, allocations: 380.2 kB / 0.5219 GB, free: 10.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.6244, allocations: 0 / 0.5219 GB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001114/0.6255, allocations: 439.6 kB / 0.5223 GB, free: 9.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.6256, allocations: 8 kB / 0.5223 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.6256, allocations: 3.984 kB / 0.5223 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.6256, allocations: 12.25 kB / 0.5223 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.626, allocations: 91.81 kB / 0.5224 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.626, allocations: 4 kB / 0.5224 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.6265, allocations: 60.08 kB / 0.5225 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.6265, allocations: 20 kB / 0.5225 GB, free: 9.59 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.0002083/0.6267, allocations: 157.8 kB / 0.5226 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.45e-05/0.6268, allocations: 35.62 kB / 0.5227 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002588/0.6294, allocations: 1.921 MB / 0.5245 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/0.6295, allocations: 35.83 kB / 0.5246 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.6295, allocations: 0 / 0.5246 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.6295, allocations: 7.969 kB / 0.5246 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.6307, allocations: 1.01 MB / 0.5256 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6307, allocations: 7.125 kB / 0.5256 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003448/0.6311, allocations: 79.92 kB / 0.5257 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.6311, allocations: 0 / 0.5257 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.6311, allocations: 8 kB / 0.5257 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-06/0.6311, allocations: 3.938 kB / 0.5257 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6311, allocations: 3.938 kB / 0.5257 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.6327, allocations: 1.098 MB / 0.5267 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.6329, allocations: 167.8 kB / 0.5269 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.53e-05/0.633, allocations: 19.75 kB / 0.5269 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.6333, allocations: 47.83 kB / 0.527 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.6335, allocations: 31.95 kB / 0.527 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.6335, allocations: 12 kB / 0.527 GB, free: 4.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.6339, allocations: 331.1 kB / 0.5273 GB, free: 4.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6339, allocations: 0 / 0.5273 GB, free: 4.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005929/0.6398, allocations: 0.9877 MB / 0.5283 GB, free: 3.543 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.01302/0.6529, allocations: 2.738 MB / 0.531 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.6549, allocations: 0.638 MB / 0.5316 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.6549, allocations: 0 / 0.5316 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007893/0.6557, allocations: 0.5143 MB / 0.5321 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.6571, allocations: 223.4 kB / 0.5323 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.6688, allocations: 5.39 MB / 0.5376 GB, free: 9.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.6694, allocations: 0.9599 MB / 0.5385 GB, free: 8.914 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005738/0.67, allocations: 282.4 kB / 0.5388 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.6703, allocations: 259.3 kB / 0.539 GB, free: 8.391 MB / 414.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6703, allocations: 4 kB / 0.539 GB, free: 8.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08193/0.7522, allocations: 46.36 MB / 0.5843 GB, free: 10.01 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002118/0.7525, allocations: 252.8 kB / 0.5845 GB, free: 9.758 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.475/5.227, allocations: 3.938 kB / 0.5845 GB, free: 9.754 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