Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.006693/0.006693, allocations: 105.6 kB / 21.98 MB, free: 5.223 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.001732/0.001732, allocations: 212.6 kB / 25.29 MB, free: 3.203 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.439/1.439, allocations: 230.5 MB / 258.9 MB, free: 8.176 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2335/0.2335, allocations: 46.92 MB / 362.3 MB, free: 4.242 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002343, allocations: 83.86 kB / 0.4982 GB, free: 7.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3353, allocations: 66.08 MB / 0.5627 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03447/0.3697, allocations: 28.67 MB / 0.5907 GB, free: 7.484 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0176/0.3873, allocations: 13.4 MB / 0.6038 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/0.3877, allocations: 11.88 kB / 0.6038 GB, free: 10.03 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008258/0.3886, allocations: 250.4 kB / 0.6041 GB, free: 9.781 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.399, allocations: 3.681 MB / 0.6077 GB, free: 6.098 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006835/0.4058, allocations: 2.387 MB / 0.61 GB, free: 3.715 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001436/0.4072, allocations: 0.9197 MB / 0.6109 GB, free: 2.793 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004272/0.4077, allocations: 212.9 kB / 0.6111 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000934/0.4086, allocations: 462.2 kB / 0.6115 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.409, allocations: 278.9 kB / 0.6118 GB, free: 1.852 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.729e-05/0.4091, allocations: 32 kB / 0.6118 GB, free: 1.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01522/0.4243, allocations: 7.27 MB / 0.6189 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002299/0.4245, allocations: 107.6 kB / 0.619 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.4249, allocations: 215 kB / 0.6192 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.4363, allocations: 4.435 MB / 0.6236 GB, free: 5.777 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.4363, allocations: 4 kB / 0.6236 GB, free: 5.773 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4363, allocations: 0 / 0.6236 GB, free: 5.773 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.4364, allocations: 0 / 0.6236 GB, free: 5.773 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.003643/0.44, allocations: 1.207 MB / 0.6248 GB, free: 4.531 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.4401, allocations: 8.031 kB / 0.6248 GB, free: 4.523 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.4418, allocations: 220.5 kB / 0.625 GB, free: 4.309 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000681/0.4425, allocations: 309.3 kB / 0.6253 GB, free: 3.977 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.4425, allocations: 25.03 kB / 0.6253 GB, free: 3.953 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.081e-05/0.4426, allocations: 32.36 kB / 0.6253 GB, free: 3.922 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.4442, allocations: 0.594 MB / 0.6259 GB, free: 3.289 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.4442, allocations: 0 / 0.6259 GB, free: 3.289 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.4443, allocations: 12 kB / 0.6259 GB, free: 3.277 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.4443, allocations: 8 kB / 0.6259 GB, free: 3.27 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.4459, allocations: 0.541 MB / 0.6264 GB, free: 2.727 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.003374/0.4493, allocations: 2.539 MB / 0.6289 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.451, allocations: 450.1 kB / 0.6294 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.4515, allocations: 188.7 kB / 0.6295 GB, free: 15.34 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0449/0.4964, allocations: 13.15 MB / 0.6424 GB, free: 2.172 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4964, allocations: 42.48 kB / 0.6424 GB, free: 2.121 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.933e-06/0.4964, allocations: 0 / 0.6424 GB, free: 2.121 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002948/0.4994, allocations: 0.8177 MB / 0.6432 GB, free: 1.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.4994, allocations: 106.8 kB / 0.6433 GB, free: 1.168 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.4998, allocations: 316.5 kB / 0.6436 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.4999, allocations: 29.7 kB / 0.6436 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.5, allocations: 204.6 kB / 0.6438 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.117e-05/0.5001, allocations: 95.16 kB / 0.6439 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.5002, allocations: 61.69 kB / 0.644 GB, free: 468 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5004, allocations: 346.8 kB / 0.6443 GB, free: 112 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004402/0.5008, allocations: 151.9 kB / 0.6445 GB, free: 15.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.5013, allocations: 243.8 kB / 0.6447 GB, free: 15.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009347/0.5023, allocations: 377.2 kB / 0.6451 GB, free: 15.28 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.5023, allocations: 0 / 0.6451 GB, free: 15.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001125/0.5034, allocations: 448.9 kB / 0.6455 GB, free: 14.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.5034, allocations: 4 kB / 0.6455 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.5034, allocations: 4.312 kB / 0.6455 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.5034, allocations: 11.94 kB / 0.6455 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003617/0.5038, allocations: 87.86 kB / 0.6456 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.5038, allocations: 7.938 kB / 0.6456 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.5041, allocations: 55.69 kB / 0.6457 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.5042, allocations: 12 kB / 0.6457 GB, free: 14.66 MB / 494.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.0002169/0.5044, allocations: 165.7 kB / 0.6458 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.5045, allocations: 39.77 kB / 0.6459 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002764/0.5072, allocations: 1.987 MB / 0.6478 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/0.5073, allocations: 35.88 kB / 0.6478 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5073, allocations: 0 / 0.6478 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5073, allocations: 0 / 0.6478 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.5085, allocations: 1.015 MB / 0.6488 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.5085, allocations: 0 / 0.6488 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.5088, allocations: 83.86 kB / 0.6489 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.5088, allocations: 4 kB / 0.6489 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.5088, allocations: 4 kB / 0.6489 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.269e-05/0.5088, allocations: 7.938 kB / 0.6489 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5088, allocations: 3.984 kB / 0.6489 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.5105, allocations: 1.128 MB / 0.65 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.5107, allocations: 95.11 kB / 0.6501 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.5108, allocations: 31.7 kB / 0.6501 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.511, allocations: 35.91 kB / 0.6502 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.5112, allocations: 31.94 kB / 0.6502 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.5112, allocations: 12 kB / 0.6502 GB, free: 9.895 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000429/0.5116, allocations: 331.1 kB / 0.6505 GB, free: 9.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5116, allocations: 0 / 0.6505 GB, free: 9.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00329/0.5149, allocations: 1.006 MB / 0.6515 GB, free: 8.562 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: 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.004992/0.5199, allocations: 1.165 MB / 0.6527 GB, free: 7.387 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.5213, allocations: 0.6102 MB / 0.6533 GB, free: 6.777 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.5213, allocations: 4 kB / 0.6533 GB, free: 6.773 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.5221, allocations: 429.6 kB / 0.6537 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.5232, allocations: 208.2 kB / 0.6539 GB, free: 6.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.5255, allocations: 1.595 MB / 0.6554 GB, free: 4.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005785/0.5261, allocations: 0.9638 MB / 0.6564 GB, free: 3.527 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.5262, allocations: 43.44 kB / 0.6564 GB, free: 3.484 MB / 494.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5262, allocations: 4 kB / 0.6564 GB, free: 3.48 MB / 494.1 MB Notification: Performance of Templates: time 0.03811/0.5643, allocations: 24.18 MB / 0.68 GB, free: 11.31 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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: 10.734400971094146]