Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 107.7 kB / 16.41 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 189.5 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2167/0.2167, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 77.45 kB / 441.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1102, allocations: 57.78 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0327/0.143, allocations: 28.12 MB / 0.5149 GB, free: 52 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01847/0.1615, allocations: 13.3 MB / 0.5279 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004285/0.1619, allocations: 7.938 kB / 0.5279 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007636/0.1627, allocations: 254.4 kB / 0.5281 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2275/0.3902, allocations: 3.64 MB / 0.5317 GB, free: 4.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005688/0.3959, allocations: 2.367 MB / 0.534 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.3971, allocations: 0.889 MB / 0.5348 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.3974, allocations: 245.9 kB / 0.5351 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006899/0.3981, allocations: 441 kB / 0.5355 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.3985, allocations: 264.6 kB / 0.5357 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.3985, allocations: 33.34 kB / 0.5358 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01423/0.4128, allocations: 7.225 MB / 0.5428 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.413, allocations: 96.66 kB / 0.5429 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004447/0.4135, allocations: 220.6 kB / 0.5431 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0128/0.4263, allocations: 4.417 MB / 0.5474 GB, free: 3.941 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/0.4263, allocations: 0 / 0.5474 GB, free: 3.941 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4263, allocations: 0 / 0.5474 GB, free: 3.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.4264, allocations: 1 kB / 0.5474 GB, free: 3.941 MB / 414.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.005478/0.4318, allocations: 1.271 MB / 0.5487 GB, free: 3.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.4319, allocations: 12.17 kB / 0.5487 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.133e-05/0.432, allocations: 63.92 kB / 0.5488 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/0.4338, allocations: 211.4 kB / 0.549 GB, free: 3.113 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/0.4346, allocations: 382.4 kB / 0.5493 GB, free: 2.875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.4346, allocations: 29.94 kB / 0.5494 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.4347, allocations: 26 kB / 0.5494 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.4363, allocations: 0.5809 MB / 0.5499 GB, free: 2.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.4364, allocations: 8.594 kB / 0.55 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.4364, allocations: 11.53 kB / 0.55 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.4364, allocations: 9.266 kB / 0.55 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.4381, allocations: 0.5253 MB / 0.5505 GB, free: 2.734 MB / 414.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.002829/0.441, allocations: 2.621 MB / 0.5531 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.4425, allocations: 458 kB / 0.5535 GB, free: 0.793 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004404/0.443, allocations: 197.1 kB / 0.5537 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05043/0.4934, allocations: 24.3 MB / 0.5774 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.4935, allocations: 36.84 kB / 0.5774 GB, free: 13.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.914e-06/0.4935, allocations: 0 / 0.5774 GB, free: 13.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002818/0.4963, allocations: 0.7916 MB / 0.5782 GB, free: 13.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.4964, allocations: 104.9 kB / 0.5783 GB, free: 13.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003843/0.4968, allocations: 309.5 kB / 0.5786 GB, free: 13.08 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.4969, allocations: 33.64 kB / 0.5786 GB, free: 13.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.497, allocations: 206 kB / 0.5788 GB, free: 12.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.4971, allocations: 93.5 kB / 0.5789 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.4973, allocations: 71.5 kB / 0.579 GB, free: 12.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.4974, allocations: 338.8 kB / 0.5793 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.4978, allocations: 139.1 kB / 0.5795 GB, free: 12.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.4983, allocations: 242.2 kB / 0.5797 GB, free: 12.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008163/0.4992, allocations: 360.7 kB / 0.58 GB, free: 11.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4992, allocations: 4 kB / 0.58 GB, free: 11.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001011/0.5002, allocations: 418.5 kB / 0.5804 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.5002, allocations: 8 kB / 0.5804 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.5002, allocations: 0 / 0.5804 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.5003, allocations: 7.938 kB / 0.5804 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003771/0.5007, allocations: 88.44 kB / 0.5805 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.5007, allocations: 6.109 kB / 0.5805 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.501, allocations: 47.77 kB / 0.5806 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.5011, allocations: 20.22 kB / 0.5806 GB, free: 11.35 MB / 446.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.0002372/0.5013, allocations: 166.2 kB / 0.5808 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.5014, allocations: 31.81 kB / 0.5808 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.504, allocations: 1.893 MB / 0.5826 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-05/0.504, allocations: 32.95 kB / 0.5827 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.504, allocations: 8.484 kB / 0.5827 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.504, allocations: 0.9375 kB / 0.5827 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.5052, allocations: 1.019 MB / 0.5837 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.5053, allocations: 8 kB / 0.5837 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/0.5057, allocations: 69.81 kB / 0.5838 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.5057, allocations: 0 / 0.5838 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.5058, allocations: 8 kB / 0.5838 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5058, allocations: 3.938 kB / 0.5838 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5058, allocations: 0 / 0.5838 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.508, allocations: 1.085 MB / 0.5848 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002683/0.5083, allocations: 168.2 kB / 0.585 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.5084, allocations: 23.84 kB / 0.585 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.5089, allocations: 31.86 kB / 0.585 GB, free: 7.523 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.509, allocations: 31.95 kB / 0.5851 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.5091, allocations: 14.61 kB / 0.5851 GB, free: 7.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005999/0.5097, allocations: 327.1 kB / 0.5854 GB, free: 7.164 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5097, allocations: 2.625 kB / 0.5854 GB, free: 7.164 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006659/0.5164, allocations: 1.002 MB / 0.5864 GB, free: 6.16 MB / 446.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.01198/0.5284, allocations: 2.709 MB / 0.589 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001887/0.5303, allocations: 0.585 MB / 0.5896 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5303, allocations: 0 / 0.5896 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.5314, allocations: 0.5121 MB / 0.5901 GB, free: 2.465 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.5332, allocations: 229.8 kB / 0.5903 GB, free: 2.242 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.5445, allocations: 4.99 MB / 0.5952 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/0.5451, allocations: 0.956 MB / 0.5961 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005309/0.5457, allocations: 278.1 kB / 0.5964 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.546, allocations: 255.3 kB / 0.5966 GB, free: 11.64 MB / 462.1 MB Notification: Performance of SimCode: time 5.01e-07/0.546, allocations: 0 / 0.5966 GB, free: 11.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09104/0.6371, allocations: 46.52 MB / 0.6421 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.83, allocations: 12.06 kB / 0.6421 GB, free: 13.1 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches