Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009249/0.0009249, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007052/0.0007053, allocations: 89.47 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1809/0.1809, allocations: 44.84 MB / 392 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002182, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08795, allocations: 62.95 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1868/0.2748, allocations: 26.19 MB / 0.5409 GB, free: 11.86 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.2884, allocations: 12.4 MB / 0.553 GB, free: 2.762 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003439/0.2887, allocations: 12.56 kB / 0.553 GB, free: 2.754 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006114/0.2894, allocations: 194.9 kB / 0.5532 GB, free: 2.594 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008413/0.2978, allocations: 2.862 MB / 0.556 GB, free: 480 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005739/0.3035, allocations: 1.829 MB / 0.5578 GB, free: 15.12 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.3048, allocations: 0.9904 MB / 0.5588 GB, free: 14.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003949/0.3052, allocations: 195.4 kB / 0.5589 GB, free: 14.42 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000807/0.3061, allocations: 388.8 kB / 0.5593 GB, free: 14.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.3065, allocations: 255.5 kB / 0.5596 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.3066, allocations: 14.97 kB / 0.5596 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01309/0.3197, allocations: 6.831 MB / 0.5662 GB, free: 9.648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.3199, allocations: 79.72 kB / 0.5663 GB, free: 9.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.3201, allocations: 105.5 kB / 0.5664 GB, free: 9.461 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005155/0.3253, allocations: 2.97 MB / 0.5693 GB, free: 6.484 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3253, allocations: 0 / 0.5693 GB, free: 6.484 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3253, allocations: 0 / 0.5693 GB, free: 6.484 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.3253, allocations: 0 / 0.5693 GB, free: 6.484 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.00269/0.328, allocations: 1.158 MB / 0.5705 GB, free: 5.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3281, allocations: 12.03 kB / 0.5705 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001561/0.3296, allocations: 219.3 kB / 0.5707 GB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.3301, allocations: 366 kB / 0.571 GB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.3302, allocations: 24.66 kB / 0.571 GB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.3302, allocations: 35.89 kB / 0.5711 GB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.3317, allocations: 0.594 MB / 0.5717 GB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3317, allocations: 4 kB / 0.5717 GB, free: 3.957 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.3318, allocations: 12 kB / 0.5717 GB, free: 3.945 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.3318, allocations: 11.88 kB / 0.5717 GB, free: 3.938 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.3334, allocations: 0.5602 MB / 0.5722 GB, free: 3.379 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.002851/0.3362, allocations: 2.64 MB / 0.5748 GB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.3377, allocations: 494.1 kB / 0.5753 GB, free: 8 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.3382, allocations: 204.7 kB / 0.5755 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04661/0.3848, allocations: 27 MB / 0.6018 GB, free: 1.398 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.3849, allocations: 34.56 kB / 0.6019 GB, free: 1.355 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.215e-06/0.3849, allocations: 0 / 0.6019 GB, free: 1.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002682/0.3876, allocations: 0.8436 MB / 0.6027 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.3877, allocations: 110.8 kB / 0.6028 GB, free: 384 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.388, allocations: 312.5 kB / 0.6031 GB, free: 64 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.388, allocations: 25.7 kB / 0.6031 GB, free: 32 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.3882, allocations: 212.2 kB / 0.6033 GB, free: 15.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/0.3883, allocations: 86.83 kB / 0.6034 GB, free: 15.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.3883, allocations: 4 kB / 0.6034 GB, free: 15.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3884, allocations: 342.8 kB / 0.6037 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000423/0.3888, allocations: 155.9 kB / 0.6039 GB, free: 15.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.3893, allocations: 246.9 kB / 0.6041 GB, free: 14.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/0.3897, allocations: 163.9 kB / 0.6043 GB, free: 14.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3897, allocations: 0 / 0.6043 GB, free: 14.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009589/0.3907, allocations: 457.6 kB / 0.6047 GB, free: 14.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3907, allocations: 13.7 kB / 0.6047 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3907, allocations: 0 / 0.6047 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3907, allocations: 8 kB / 0.6047 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.3911, allocations: 80.2 kB / 0.6048 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3911, allocations: 8 kB / 0.6048 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.3914, allocations: 67.55 kB / 0.6049 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.3915, allocations: 16 kB / 0.6049 GB, free: 14.15 MB / 426.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.0001671/0.3916, allocations: 165.7 kB / 0.6051 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.462e-05/0.3917, allocations: 35.56 kB / 0.6051 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.3941, allocations: 1.936 MB / 0.607 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.3941, allocations: 27.95 kB / 0.607 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3941, allocations: 0 / 0.607 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3941, allocations: 3.984 kB / 0.607 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009682/0.3951, allocations: 1.027 MB / 0.608 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3951, allocations: 0 / 0.608 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/0.3954, allocations: 83.88 kB / 0.6081 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.3955, allocations: 0 / 0.6081 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.3955, allocations: 8.875 kB / 0.6081 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3955, allocations: 0 / 0.6081 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3955, allocations: 0 / 0.6081 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.3969, allocations: 1.108 MB / 0.6092 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.3971, allocations: 215.6 kB / 0.6094 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.3972, allocations: 8 kB / 0.6094 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.3975, allocations: 45.69 kB / 0.6095 GB, free: 9.395 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.3976, allocations: 35.94 kB / 0.6095 GB, free: 9.359 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.3976, allocations: 12 kB / 0.6095 GB, free: 9.348 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003191/0.3979, allocations: 319.1 kB / 0.6098 GB, free: 9.035 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3979, allocations: 4 kB / 0.6098 GB, free: 9.031 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002474/0.4004, allocations: 0.9955 MB / 0.6108 GB, free: 8.035 MB / 426.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.004211/0.4046, allocations: 1.181 MB / 0.6119 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.4058, allocations: 0.6261 MB / 0.6125 GB, free: 6.223 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4058, allocations: 4 kB / 0.6125 GB, free: 6.219 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.4065, allocations: 0.5167 MB / 0.613 GB, free: 5.703 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.4076, allocations: 213.7 kB / 0.6133 GB, free: 5.504 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.4098, allocations: 1.919 MB / 0.6151 GB, free: 3.547 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.4103, allocations: 0.968 MB / 0.6161 GB, free: 2.551 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.4104, allocations: 43.44 kB / 0.6161 GB, free: 2.508 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4104, allocations: 3.938 kB / 0.6161 GB, free: 2.504 MB / 426.7 MB Notification: Performance of Templates: time 0.03209/0.4425, allocations: 24.03 MB / 0.6396 GB, free: 10.49 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches