Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001831/0.001831, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002348/0.002348, allocations: 203.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.95 MB / 360.8 MB, free: 3.934 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 79.86 kB / 0.4962 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3097, allocations: 66.09 MB / 0.5607 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03109/0.3408, allocations: 25.9 MB / 0.586 GB, free: 9.898 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.3577, allocations: 11.77 MB / 0.5975 GB, free: 14.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004464/0.3581, allocations: 15.81 kB / 0.5975 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008109/0.3589, allocations: 230.5 kB / 0.5977 GB, free: 13.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.3691, allocations: 3.639 MB / 0.6013 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006509/0.3756, allocations: 2.363 MB / 0.6036 GB, free: 7.844 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.3771, allocations: 0.9042 MB / 0.6045 GB, free: 6.938 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004117/0.3775, allocations: 200.9 kB / 0.6047 GB, free: 6.734 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009012/0.3784, allocations: 446.2 kB / 0.6051 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003967/0.3788, allocations: 270.8 kB / 0.6053 GB, free: 6.031 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.065e-05/0.3789, allocations: 32 kB / 0.6054 GB, free: 6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/0.3924, allocations: 6.899 MB / 0.6121 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.3926, allocations: 99.61 kB / 0.6122 GB, free: 15 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.3929, allocations: 191.2 kB / 0.6124 GB, free: 14.81 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008783/0.4016, allocations: 4.42 MB / 0.6167 GB, free: 10.38 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4016, allocations: 4 kB / 0.6167 GB, free: 10.37 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4016, allocations: 0 / 0.6167 GB, free: 10.37 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.4017, allocations: 0 / 0.6167 GB, free: 10.37 MB / 462.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.003138/0.4048, allocations: 1.188 MB / 0.6179 GB, free: 9.148 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.4048, allocations: 8.031 kB / 0.6179 GB, free: 9.141 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.4049, allocations: 66.72 kB / 0.6179 GB, free: 9.066 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.4066, allocations: 216.5 kB / 0.6181 GB, free: 8.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.4072, allocations: 317.2 kB / 0.6184 GB, free: 8.516 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.067e-05/0.4072, allocations: 29.03 kB / 0.6185 GB, free: 8.488 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.4073, allocations: 32.12 kB / 0.6185 GB, free: 8.457 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.4089, allocations: 0.7291 MB / 0.6192 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.4089, allocations: 3.938 kB / 0.6192 GB, free: 7.648 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.409, allocations: 12 kB / 0.6192 GB, free: 7.637 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.409, allocations: 8 kB / 0.6192 GB, free: 7.629 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.4106, allocations: 0.5215 MB / 0.6197 GB, free: 7.105 MB / 462.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.002946/0.4135, allocations: 1.91 MB / 0.6216 GB, free: 5.113 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.4151, allocations: 454.1 kB / 0.622 GB, free: 4.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000437/0.4155, allocations: 172.7 kB / 0.6222 GB, free: 4.488 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04803/0.4636, allocations: 13.2 MB / 0.6351 GB, free: 7.273 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/0.4636, allocations: 38.5 kB / 0.6351 GB, free: 7.227 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.4636, allocations: 0 / 0.6351 GB, free: 7.227 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002884/0.4665, allocations: 0.7975 MB / 0.6359 GB, free: 6.422 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.4666, allocations: 106.8 kB / 0.636 GB, free: 6.293 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.4669, allocations: 312.5 kB / 0.6363 GB, free: 5.984 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.467, allocations: 29.7 kB / 0.6363 GB, free: 5.949 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.4672, allocations: 212.5 kB / 0.6365 GB, free: 5.738 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.375e-05/0.4672, allocations: 91.2 kB / 0.6366 GB, free: 5.648 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.4674, allocations: 69.69 kB / 0.6367 GB, free: 5.574 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.4675, allocations: 342.8 kB / 0.637 GB, free: 5.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.4679, allocations: 139.9 kB / 0.6372 GB, free: 5.094 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005098/0.4684, allocations: 283.1 kB / 0.6374 GB, free: 4.766 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008248/0.4692, allocations: 354 kB / 0.6378 GB, free: 4.387 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4693, allocations: 4 kB / 0.6378 GB, free: 4.383 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001035/0.4703, allocations: 433.2 kB / 0.6382 GB, free: 3.953 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4703, allocations: 10.03 kB / 0.6382 GB, free: 3.945 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4703, allocations: 4 kB / 0.6382 GB, free: 3.941 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.4703, allocations: 7.938 kB / 0.6382 GB, free: 3.934 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.4707, allocations: 79.88 kB / 0.6383 GB, free: 3.855 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.4707, allocations: 7.984 kB / 0.6383 GB, free: 3.848 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.4709, allocations: 47.72 kB / 0.6383 GB, free: 3.801 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.471, allocations: 15.98 kB / 0.6383 GB, free: 3.785 MB / 478.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: 5 (Opening.y,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.0001989/0.4712, allocations: 169.7 kB / 0.6385 GB, free: 3.609 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.4713, allocations: 39.8 kB / 0.6385 GB, free: 3.57 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.4739, allocations: 1.983 MB / 0.6405 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/0.474, allocations: 27.95 kB / 0.6405 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.474, allocations: 0 / 0.6405 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.474, allocations: 3.984 kB / 0.6405 GB, free: 1.539 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.4751, allocations: 0.9603 MB / 0.6414 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4751, allocations: 0 / 0.6414 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/0.4754, allocations: 75.88 kB / 0.6415 GB, free: 468 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4754, allocations: 3.938 kB / 0.6415 GB, free: 464 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.4754, allocations: 11.94 kB / 0.6415 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4754, allocations: 0 / 0.6415 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.4754, allocations: 0 / 0.6415 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.477, allocations: 1.116 MB / 0.6426 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.4771, allocations: 91.11 kB / 0.6427 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/0.4772, allocations: 27.81 kB / 0.6427 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.4775, allocations: 19.98 kB / 0.6428 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.175e-05/0.4775, allocations: 35.94 kB / 0.6428 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.4776, allocations: 11.98 kB / 0.6428 GB, free: 15.12 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004022/0.478, allocations: 323.1 kB / 0.6431 GB, free: 14.81 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.478, allocations: 0 / 0.6431 GB, free: 14.81 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002748/0.4807, allocations: 1.018 MB / 0.6441 GB, free: 13.79 MB / 494.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: 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 (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.00649/0.4872, allocations: 2.725 MB / 0.6468 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.4885, allocations: 0.5911 MB / 0.6473 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4885, allocations: 4 kB / 0.6473 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.4892, allocations: 417 kB / 0.6477 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.4904, allocations: 214.7 kB / 0.6479 GB, free: 9.828 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008515/0.4989, allocations: 5.012 MB / 0.6528 GB, free: 4.672 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.4993, allocations: 366.2 kB / 0.6532 GB, free: 4.285 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005398/0.4998, allocations: 278.8 kB / 0.6535 GB, free: 4.016 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003514/0.5002, allocations: 255.3 kB / 0.6537 GB, free: 3.766 MB / 494.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5002, allocations: 0 / 0.6537 GB, free: 3.766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09864/0.5988, allocations: 47.85 MB / 0.7004 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.79, allocations: 10.72 kB / 0.7004 GB, free: 4.102 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.358961292076856]