Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008567/0.0008567, allocations: 166.8 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.157/1.157, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007403/0.0007403, allocations: 93.28 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2853/0.2853, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003273, allocations: 16 kB / 432.1 MB, free: 5.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09794, allocations: 58.85 MB / 490.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.1865/0.2845, allocations: 26.24 MB / 0.505 GB, free: 31.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.295, allocations: 12.39 MB / 0.5171 GB, free: 22.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004027/0.2955, allocations: 14.88 kB / 0.5172 GB, free: 22.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006029/0.2961, allocations: 195.9 kB / 0.5173 GB, free: 22.76 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00747/0.3035, allocations: 2.854 MB / 0.5201 GB, free: 21.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005211/0.3088, allocations: 1.85 MB / 0.5219 GB, free: 20.56 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.3098, allocations: 0.9892 MB / 0.5229 GB, free: 20.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003065/0.3101, allocations: 217.8 kB / 0.5231 GB, free: 20.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000602/0.3108, allocations: 386.8 kB / 0.5235 GB, free: 19.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.311, allocations: 259.2 kB / 0.5237 GB, free: 19.81 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.311, allocations: 16.06 kB / 0.5237 GB, free: 19.81 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01038/0.3214, allocations: 6.876 MB / 0.5305 GB, free: 18.22 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.3216, allocations: 84.23 kB / 0.5305 GB, free: 18.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.3219, allocations: 219.5 kB / 0.5307 GB, free: 18.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004861/0.3267, allocations: 2.979 MB / 0.5337 GB, free: 17.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3268, allocations: 3.344 kB / 0.5337 GB, free: 17.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3268, allocations: 0 / 0.5337 GB, free: 17.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3268, allocations: 0 / 0.5337 GB, free: 17.48 MB / 378.7 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.003487/0.3303, allocations: 1.176 MB / 0.5348 GB, free: 16.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.3304, allocations: 9.219 kB / 0.5348 GB, free: 16.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.009e-05/0.3304, allocations: 67.44 kB / 0.5349 GB, free: 16.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.332, allocations: 217.7 kB / 0.5351 GB, free: 16.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.3324, allocations: 366.2 kB / 0.5354 GB, free: 16.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.3325, allocations: 29.84 kB / 0.5355 GB, free: 16.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.3325, allocations: 35.72 kB / 0.5355 GB, free: 16.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.3341, allocations: 0.6108 MB / 0.5361 GB, free: 16.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.3341, allocations: 3.938 kB / 0.5361 GB, free: 16.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.888e-05/0.3341, allocations: 18.47 kB / 0.5361 GB, free: 16.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3342, allocations: 6.469 kB / 0.5361 GB, free: 16.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.3358, allocations: 0.5878 MB / 0.5367 GB, free: 15.9 MB / 378.7 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.002929/0.3387, allocations: 2.643 MB / 0.5393 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.3403, allocations: 0.5 MB / 0.5398 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.3408, allocations: 218.9 kB / 0.54 GB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04441/0.3852, allocations: 24.42 MB / 0.5638 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.3853, allocations: 39.84 kB / 0.5639 GB, free: 10.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 1.853e-06/0.3853, allocations: 0 / 0.5639 GB, free: 10.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002848/0.3881, allocations: 0.8929 MB / 0.5647 GB, free: 10.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.3882, allocations: 106.6 kB / 0.5648 GB, free: 10.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.3886, allocations: 308.3 kB / 0.5651 GB, free: 9.895 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/0.3886, allocations: 31.58 kB / 0.5652 GB, free: 9.859 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.3888, allocations: 203.5 kB / 0.5654 GB, free: 9.676 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.152e-05/0.3889, allocations: 81.69 kB / 0.5654 GB, free: 9.605 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.3889, allocations: 8 kB / 0.5654 GB, free: 9.598 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.389, allocations: 341.8 kB / 0.5658 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.3894, allocations: 168.7 kB / 0.5659 GB, free: 9.188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.3899, allocations: 266.2 kB / 0.5662 GB, free: 8.992 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/0.3908, allocations: 410.9 kB / 0.5666 GB, free: 8.746 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3908, allocations: 11.25 kB / 0.5666 GB, free: 8.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001067/0.3919, allocations: 481.1 kB / 0.567 GB, free: 8.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3919, allocations: 5.781 kB / 0.567 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3919, allocations: 2.594 kB / 0.5671 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.392, allocations: 8.031 kB / 0.5671 GB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.3923, allocations: 99.59 kB / 0.5672 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.3923, allocations: 7.734 kB / 0.5672 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.3927, allocations: 61.72 kB / 0.5672 GB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.3928, allocations: 22.77 kB / 0.5672 GB, free: 8.43 MB / 394.7 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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001954/0.393, allocations: 159 kB / 0.5674 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.092e-05/0.393, allocations: 32.69 kB / 0.5674 GB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.3955, allocations: 1.975 MB / 0.5694 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.78e-05/0.3956, allocations: 35.89 kB / 0.5694 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3956, allocations: 0 / 0.5694 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3956, allocations: 3.984 kB / 0.5694 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009896/0.3966, allocations: 1.015 MB / 0.5704 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3966, allocations: 0 / 0.5704 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.3969, allocations: 91.88 kB / 0.5705 GB, free: 5.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3969, allocations: 4 kB / 0.5705 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.397, allocations: 9.047 kB / 0.5705 GB, free: 5.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.397, allocations: 7.938 kB / 0.5705 GB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.397, allocations: 0 / 0.5705 GB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.3985, allocations: 1.124 MB / 0.5716 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.3987, allocations: 215.6 kB / 0.5718 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.902e-05/0.3988, allocations: 11.94 kB / 0.5718 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/0.3991, allocations: 55.83 kB / 0.5719 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.656e-05/0.3992, allocations: 31.95 kB / 0.5719 GB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.3992, allocations: 17.55 kB / 0.5719 GB, free: 3.859 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003293/0.3996, allocations: 323.1 kB / 0.5722 GB, free: 3.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3996, allocations: 4 kB / 0.5722 GB, free: 3.539 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003273/0.4029, allocations: 0.9954 MB / 0.5732 GB, free: 2.543 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007512/0.4104, allocations: 2.735 MB / 0.5759 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.4117, allocations: 0.6498 MB / 0.5765 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.4117, allocations: 0 / 0.5765 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007069/0.4124, allocations: 0.5414 MB / 0.577 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.4137, allocations: 205.6 kB / 0.5772 GB, free: 14.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.4206, allocations: 3.735 MB / 0.5809 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/0.4211, allocations: 0.9757 MB / 0.5818 GB, free: 9.578 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.4214, allocations: 251.3 kB / 0.5821 GB, free: 9.336 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4214, allocations: 4 kB / 0.5821 GB, free: 9.332 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.021/5.442, allocations: 24.99 MB / 0.6065 GB, free: 316 kB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches