Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 111.1 kB / 20.44 MB, free: 1.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 214.8 kB / 23.73 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2251/0.2251, allocations: 44.94 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 63.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3416, allocations: 65.47 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03352/0.3751, allocations: 25.92 MB / 0.5823 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.3939, allocations: 11.77 MB / 0.5938 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.3943, allocations: 11.88 kB / 0.5938 GB, free: 1.699 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008508/0.3952, allocations: 234.5 kB / 0.594 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.4065, allocations: 3.65 MB / 0.5976 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007083/0.4136, allocations: 2.348 MB / 0.5999 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.415, allocations: 0.9119 MB / 0.6008 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005085/0.4155, allocations: 216.8 kB / 0.601 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.4166, allocations: 442.2 kB / 0.6014 GB, free: 9.906 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004679/0.4171, allocations: 266.9 kB / 0.6016 GB, free: 9.645 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.344e-05/0.4172, allocations: 40 kB / 0.6017 GB, free: 9.605 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01523/0.4324, allocations: 6.903 MB / 0.6084 GB, free: 2.695 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.4326, allocations: 103.5 kB / 0.6085 GB, free: 2.594 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003341/0.433, allocations: 187.2 kB / 0.6087 GB, free: 2.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.4446, allocations: 4.431 MB / 0.613 GB, free: 13.96 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.4446, allocations: 0 / 0.613 GB, free: 13.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4446, allocations: 0 / 0.613 GB, free: 13.96 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.4446, allocations: 0 / 0.613 GB, free: 13.96 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.003587/0.4482, allocations: 1.192 MB / 0.6142 GB, free: 12.74 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4483, allocations: 15.97 kB / 0.6142 GB, free: 12.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.287e-05/0.4484, allocations: 70.72 kB / 0.6143 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.4501, allocations: 212.4 kB / 0.6145 GB, free: 12.44 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006112/0.4507, allocations: 325.2 kB / 0.6148 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.4508, allocations: 21.03 kB / 0.6148 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.4508, allocations: 36.12 kB / 0.6148 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.4526, allocations: 0.737 MB / 0.6156 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4526, allocations: 0 / 0.6156 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.4526, allocations: 12 kB / 0.6156 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.4526, allocations: 11.98 kB / 0.6156 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.4543, allocations: 0.541 MB / 0.6161 GB, free: 10.66 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.003053/0.4574, allocations: 1.907 MB / 0.618 GB, free: 8.668 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.459, allocations: 454.1 kB / 0.6184 GB, free: 8.215 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005126/0.4596, allocations: 188.7 kB / 0.6186 GB, free: 8.027 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04835/0.5079, allocations: 13.2 MB / 0.6315 GB, free: 10.81 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/0.508, allocations: 38.56 kB / 0.6315 GB, free: 10.76 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.284e-06/0.508, allocations: 0 / 0.6315 GB, free: 10.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003054/0.511, allocations: 0.8208 MB / 0.6323 GB, free: 9.934 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.5111, allocations: 106.8 kB / 0.6324 GB, free: 9.805 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.5115, allocations: 320.4 kB / 0.6327 GB, free: 9.488 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/0.5116, allocations: 33.7 kB / 0.6327 GB, free: 9.449 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.5117, allocations: 208.5 kB / 0.6329 GB, free: 9.242 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.626e-05/0.5118, allocations: 91.25 kB / 0.633 GB, free: 9.152 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.5119, allocations: 69.69 kB / 0.6331 GB, free: 9.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.5121, allocations: 342.8 kB / 0.6334 GB, free: 8.734 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004353/0.5125, allocations: 143.9 kB / 0.6336 GB, free: 8.594 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.5131, allocations: 295.3 kB / 0.6338 GB, free: 8.254 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/0.514, allocations: 381.8 kB / 0.6342 GB, free: 7.848 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.514, allocations: 0 / 0.6342 GB, free: 7.848 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001113/0.5151, allocations: 445.1 kB / 0.6346 GB, free: 7.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.5152, allocations: 10.19 kB / 0.6346 GB, free: 7.398 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.5152, allocations: 3.938 kB / 0.6346 GB, free: 7.395 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.5152, allocations: 7.938 kB / 0.6347 GB, free: 7.387 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/0.5156, allocations: 87.88 kB / 0.6347 GB, free: 7.301 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.5156, allocations: 7.984 kB / 0.6347 GB, free: 7.293 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.5159, allocations: 51.97 kB / 0.6348 GB, free: 7.242 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.5159, allocations: 16 kB / 0.6348 GB, free: 7.227 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: 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.0002042/0.5161, allocations: 157.8 kB / 0.635 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.327e-05/0.5162, allocations: 35.77 kB / 0.635 GB, free: 7.027 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.519, allocations: 2.007 MB / 0.637 GB, free: 5.008 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.119e-05/0.5191, allocations: 27.95 kB / 0.637 GB, free: 4.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.5191, allocations: 3.984 kB / 0.637 GB, free: 4.977 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5191, allocations: 7.938 kB / 0.637 GB, free: 4.969 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.5202, allocations: 0.9565 MB / 0.6379 GB, free: 3.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5202, allocations: 0 / 0.6379 GB, free: 3.965 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.5206, allocations: 79.86 kB / 0.638 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5206, allocations: 0 / 0.638 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.5206, allocations: 15.88 kB / 0.638 GB, free: 3.871 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.5206, allocations: 0 / 0.638 GB, free: 3.871 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5206, allocations: 4 kB / 0.638 GB, free: 3.867 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.5223, allocations: 1.132 MB / 0.6391 GB, free: 2.715 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.5224, allocations: 87.16 kB / 0.6392 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.125e-05/0.5225, allocations: 27.72 kB / 0.6392 GB, free: 2.602 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.5228, allocations: 35.95 kB / 0.6393 GB, free: 2.566 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.5229, allocations: 35.94 kB / 0.6393 GB, free: 2.531 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.5229, allocations: 8 kB / 0.6393 GB, free: 2.523 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000409/0.5233, allocations: 335.1 kB / 0.6396 GB, free: 2.199 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5233, allocations: 0 / 0.6396 GB, free: 2.199 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002692/0.526, allocations: 1.006 MB / 0.6406 GB, free: 1.191 MB / 478.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.006247/0.5323, allocations: 2.76 MB / 0.6433 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.5337, allocations: 0.6109 MB / 0.6439 GB, free: 13.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5337, allocations: 0 / 0.6439 GB, free: 13.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007631/0.5345, allocations: 436.8 kB / 0.6443 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5357, allocations: 215 kB / 0.6445 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008841/0.5446, allocations: 5.065 MB / 0.6495 GB, free: 7.949 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.5449, allocations: 374.1 kB / 0.6498 GB, free: 7.555 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005185/0.5455, allocations: 270.9 kB / 0.6501 GB, free: 7.293 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.5458, allocations: 263.3 kB / 0.6503 GB, free: 7.035 MB / 494.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5458, allocations: 0 / 0.6503 GB, free: 7.035 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09653/0.6423, allocations: 48.06 MB / 0.6973 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.37, allocations: 7.984 kB / 0.6973 GB, free: 7.242 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 17.912783453706652]