Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.001805/0.001805, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002206/0.002206, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.47/1.47, 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.2208/0.2208, allocations: 44.93 MB / 358.8 MB, free: 6.039 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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.002428/0.002428, allocations: 71.91 kB / 0.493 GB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3462, allocations: 65.47 MB / 0.557 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03403/0.3803, allocations: 25.9 MB / 0.5823 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.3977, allocations: 11.78 MB / 0.5938 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.398, allocations: 11.88 kB / 0.5938 GB, free: 1.691 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007503/0.3988, allocations: 230.5 kB / 0.594 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009932/0.4087, allocations: 3.642 MB / 0.5975 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006441/0.4152, allocations: 2.355 MB / 0.5998 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.4165, allocations: 0.908 MB / 0.6007 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.4169, allocations: 212.8 kB / 0.6009 GB, free: 10.35 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008365/0.4177, allocations: 442.2 kB / 0.6014 GB, free: 9.914 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.4181, allocations: 262.9 kB / 0.6016 GB, free: 9.656 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.445e-05/0.4182, allocations: 32 kB / 0.6016 GB, free: 9.625 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01433/0.4325, allocations: 6.907 MB / 0.6084 GB, free: 2.711 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002505/0.4328, allocations: 103.6 kB / 0.6085 GB, free: 2.609 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003579/0.4331, allocations: 179.2 kB / 0.6087 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.4462, allocations: 4.423 MB / 0.613 GB, free: 14 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4463, allocations: 0 / 0.613 GB, free: 14 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.4463, allocations: 0 / 0.613 GB, free: 14 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.45e-05/0.4463, allocations: 0 / 0.613 GB, free: 14 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.004141/0.4504, allocations: 1.194 MB / 0.6141 GB, free: 12.77 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.4505, allocations: 8.031 kB / 0.6141 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.4506, allocations: 70.72 kB / 0.6142 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/0.4525, allocations: 212.4 kB / 0.6144 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007215/0.4533, allocations: 313.3 kB / 0.6147 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.4533, allocations: 29.02 kB / 0.6147 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.4534, allocations: 32.12 kB / 0.6148 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.4552, allocations: 0.733 MB / 0.6155 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.4552, allocations: 0 / 0.6155 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.4553, allocations: 16 kB / 0.6155 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.4553, allocations: 11.94 kB / 0.6155 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.457, allocations: 0.5253 MB / 0.616 GB, free: 10.72 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.003554/0.4606, allocations: 1.899 MB / 0.6179 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.4623, allocations: 446.1 kB / 0.6183 GB, free: 8.293 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.4627, allocations: 184.7 kB / 0.6185 GB, free: 8.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04925/0.512, allocations: 13.2 MB / 0.6314 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.228e-05/0.512, allocations: 42.56 kB / 0.6314 GB, free: 10.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.375e-06/0.512, allocations: 0 / 0.6314 GB, free: 10.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003138/0.5152, allocations: 0.7935 MB / 0.6322 GB, free: 10.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.5153, allocations: 106.8 kB / 0.6323 GB, free: 9.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004312/0.5157, allocations: 312.5 kB / 0.6326 GB, free: 9.602 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.5158, allocations: 29.7 kB / 0.6326 GB, free: 9.566 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.516, allocations: 204.6 kB / 0.6328 GB, free: 9.363 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.629e-05/0.516, allocations: 91.17 kB / 0.6329 GB, free: 9.273 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.5162, allocations: 69.69 kB / 0.633 GB, free: 9.199 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.5164, allocations: 346.8 kB / 0.6333 GB, free: 8.852 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004133/0.5168, allocations: 135.9 kB / 0.6334 GB, free: 8.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.5173, allocations: 279.3 kB / 0.6337 GB, free: 8.395 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008751/0.5182, allocations: 369.9 kB / 0.634 GB, free: 8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5182, allocations: 0 / 0.634 GB, free: 8 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001109/0.5193, allocations: 421 kB / 0.6345 GB, free: 7.582 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.5193, allocations: 7.938 kB / 0.6345 GB, free: 7.574 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.5193, allocations: 7.938 kB / 0.6345 GB, free: 7.566 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.5194, allocations: 7.938 kB / 0.6345 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.5197, allocations: 76.2 kB / 0.6345 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.5197, allocations: 11.98 kB / 0.6346 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.52, allocations: 47.72 kB / 0.6346 GB, free: 7.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.5201, allocations: 19.98 kB / 0.6346 GB, free: 7.406 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.0002351/0.5203, allocations: 161.7 kB / 0.6348 GB, free: 7.238 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.5204, allocations: 31.81 kB / 0.6348 GB, free: 7.207 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.5234, allocations: 1.987 MB / 0.6367 GB, free: 5.207 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.321e-05/0.5234, allocations: 31.95 kB / 0.6368 GB, free: 5.176 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.5234, allocations: 4 kB / 0.6368 GB, free: 5.172 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.5234, allocations: 3.984 kB / 0.6368 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.5247, allocations: 0.9565 MB / 0.6377 GB, free: 4.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5247, allocations: 0 / 0.6377 GB, free: 4.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.525, allocations: 71.88 kB / 0.6378 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.525, allocations: 0 / 0.6378 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.525, allocations: 15.94 kB / 0.6378 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.525, allocations: 0 / 0.6378 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.525, allocations: 0 / 0.6378 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.5268, allocations: 1.116 MB / 0.6389 GB, free: 2.941 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.5269, allocations: 87.11 kB / 0.639 GB, free: 2.855 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.149e-05/0.527, allocations: 23.83 kB / 0.639 GB, free: 2.832 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.5273, allocations: 31.97 kB / 0.639 GB, free: 2.801 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.5274, allocations: 31.94 kB / 0.6391 GB, free: 2.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.5274, allocations: 15.98 kB / 0.6391 GB, free: 2.754 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004389/0.5278, allocations: 327.1 kB / 0.6394 GB, free: 2.438 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5278, allocations: 3.938 kB / 0.6394 GB, free: 2.434 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003138/0.531, allocations: 1.01 MB / 0.6404 GB, free: 1.422 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: 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.006918/0.5379, allocations: 2.725 MB / 0.643 GB, free: 14.67 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.5392, allocations: 0.5944 MB / 0.6436 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.5392, allocations: 0 / 0.6436 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007187/0.5399, allocations: 421.6 kB / 0.644 GB, free: 13.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.5412, allocations: 227.2 kB / 0.6442 GB, free: 13.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009022/0.5502, allocations: 4.999 MB / 0.6491 GB, free: 8.293 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.5506, allocations: 378.1 kB / 0.6495 GB, free: 7.895 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005355/0.5512, allocations: 261.9 kB / 0.6497 GB, free: 7.645 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.5515, allocations: 259.3 kB / 0.65 GB, free: 7.391 MB / 494.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5515, allocations: 0 / 0.65 GB, free: 7.391 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09847/0.65, allocations: 47.85 MB / 0.6967 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.48, allocations: 14.47 kB / 0.6967 GB, free: 7.801 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.992270102724433]