Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.0009401/0.0009401, allocations: 174 kB / 16.72 MB, free: 5.078 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.3/1.3, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0007513/0.0007514, allocations: 101.5 kB / 271.2 MB, free: 8.234 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.2882/0.2882, allocations: 43.55 MB / 363.1 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003312, allocations: 12 kB / 432.1 MB, free: 5.746 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.09737, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1888/0.2862, allocations: 26.23 MB / 0.505 GB, free: 31.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.297, allocations: 12.38 MB / 0.5171 GB, free: 23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.2975, allocations: 13.88 kB / 0.5171 GB, free: 23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006241/0.2981, allocations: 202.1 kB / 0.5173 GB, free: 22.89 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.007212/0.3053, allocations: 2.855 MB / 0.5201 GB, free: 21.65 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00493/0.3103, allocations: 1.846 MB / 0.5219 GB, free: 20.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.3113, allocations: 0.9845 MB / 0.5229 GB, free: 20.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003069/0.3116, allocations: 209.8 kB / 0.5231 GB, free: 20.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.3122, allocations: 386.5 kB / 0.5234 GB, free: 20.06 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.3124, allocations: 256.7 kB / 0.5237 GB, free: 19.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.3124, allocations: 12.72 kB / 0.5237 GB, free: 19.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01051/0.323, allocations: 6.883 MB / 0.5304 GB, free: 18.36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.3231, allocations: 82.3 kB / 0.5305 GB, free: 18.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002581/0.3234, allocations: 217.2 kB / 0.5307 GB, free: 18.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005132/0.3285, allocations: 2.978 MB / 0.5336 GB, free: 17.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3286, allocations: 0 / 0.5336 GB, free: 17.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3286, allocations: 0 / 0.5336 GB, free: 17.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.3286, allocations: 3.938 kB / 0.5336 GB, free: 17.62 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.003471/0.3321, allocations: 1.158 MB / 0.5348 GB, free: 16.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3321, allocations: 9.469 kB / 0.5348 GB, free: 16.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.3322, allocations: 66.11 kB / 0.5348 GB, free: 16.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001529/0.3337, allocations: 225.4 kB / 0.535 GB, free: 16.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.3342, allocations: 363.2 kB / 0.5354 GB, free: 16.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.3342, allocations: 28.72 kB / 0.5354 GB, free: 16.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.3342, allocations: 26.94 kB / 0.5354 GB, free: 16.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3357, allocations: 0.6021 MB / 0.536 GB, free: 16.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3357, allocations: 3.938 kB / 0.536 GB, free: 16.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.3358, allocations: 15.97 kB / 0.536 GB, free: 16.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3358, allocations: 6.031 kB / 0.536 GB, free: 16.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.3374, allocations: 0.5598 MB / 0.5366 GB, free: 16.05 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.002626/0.34, allocations: 2.653 MB / 0.5392 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.3415, allocations: 490 kB / 0.5397 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/0.3419, allocations: 204.3 kB / 0.5398 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04376/0.3857, allocations: 24.43 MB / 0.5637 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.3857, allocations: 36.59 kB / 0.5637 GB, free: 10.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.3858, allocations: 0 / 0.5637 GB, free: 10.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002603/0.3884, allocations: 0.8442 MB / 0.5646 GB, free: 10.44 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.3884, allocations: 109.8 kB / 0.5647 GB, free: 10.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.3888, allocations: 312.2 kB / 0.565 GB, free: 10.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.3888, allocations: 33.08 kB / 0.565 GB, free: 10.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3889, allocations: 196.7 kB / 0.5652 GB, free: 9.887 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/0.389, allocations: 90.64 kB / 0.5653 GB, free: 9.809 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/0.389, allocations: 5.625 kB / 0.5653 GB, free: 9.805 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3892, allocations: 343.1 kB / 0.5656 GB, free: 9.469 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.3895, allocations: 154.5 kB / 0.5658 GB, free: 9.398 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/0.39, allocations: 255.7 kB / 0.566 GB, free: 9.203 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007596/0.3908, allocations: 376.9 kB / 0.5664 GB, free: 8.973 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3908, allocations: 4 kB / 0.5664 GB, free: 8.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009203/0.3917, allocations: 461.9 kB / 0.5668 GB, free: 8.742 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3917, allocations: 9.562 kB / 0.5668 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3917, allocations: 2.75 kB / 0.5668 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3918, allocations: 8.531 kB / 0.5668 GB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.3921, allocations: 92.62 kB / 0.5669 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3921, allocations: 3.188 kB / 0.5669 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.3924, allocations: 56.84 kB / 0.567 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.3925, allocations: 20 kB / 0.567 GB, free: 8.672 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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0001695/0.3926, allocations: 162.5 kB / 0.5671 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.3927, allocations: 34.94 kB / 0.5672 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.3951, allocations: 1.932 MB / 0.5691 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/0.3951, allocations: 31.89 kB / 0.5691 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3951, allocations: 0 / 0.5691 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3951, allocations: 0 / 0.5691 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009463/0.3961, allocations: 1.015 MB / 0.5701 GB, free: 5.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3961, allocations: 4 kB / 0.5701 GB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.3964, allocations: 79.88 kB / 0.5702 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3964, allocations: 3.984 kB / 0.5702 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.3964, allocations: 11.94 kB / 0.5702 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3964, allocations: 3.938 kB / 0.5702 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3964, allocations: 4 kB / 0.5702 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.3978, allocations: 1.101 MB / 0.5713 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.398, allocations: 215.6 kB / 0.5715 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.296e-05/0.398, allocations: 11.25 kB / 0.5715 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.3983, allocations: 55.73 kB / 0.5715 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.541e-05/0.3984, allocations: 31.95 kB / 0.5716 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3985, allocations: 12 kB / 0.5716 GB, free: 4.379 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003179/0.3988, allocations: 323.1 kB / 0.5719 GB, free: 4.062 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3988, allocations: 0 / 0.5719 GB, free: 4.062 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003527/0.4023, allocations: 0.9916 MB / 0.5728 GB, free: 3.07 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: 19 ($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,Opening.y) * 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.006871/0.4092, allocations: 2.72 MB / 0.5755 GB, free: 340 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.4104, allocations: 0.6225 MB / 0.5761 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4104, allocations: 3.938 kB / 0.5761 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.411, allocations: 0.5285 MB / 0.5766 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.4122, allocations: 193.7 kB / 0.5768 GB, free: 14.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006227/0.4184, allocations: 3.677 MB / 0.5804 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.4189, allocations: 0.9602 MB / 0.5813 GB, free: 10.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.4192, allocations: 259.3 kB / 0.5816 GB, free: 9.984 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4192, allocations: 0 / 0.5816 GB, free: 9.984 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.893/5.312, allocations: 24.94 MB / 0.6059 GB, free: 1.012 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches