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.000813/0.000813, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008729/0.0008729, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8791/0.8791, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.2506/0.2506, allocations: 34.23 MB / 294.8 MB, free: 0.6875 MB / 266.7 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 1.383e-06/1.383e-06, allocations: 0 / 442.2 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.2e-05/1.339e-05, allocations: 5.094 kB / 442.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2001/0.2001, allocations: 25.75 MB / 467.9 MB, free: 28.27 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008123/0.2082, allocations: 11.79 MB / 479.7 MB, free: 20.57 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.2085, allocations: 11.38 kB / 479.7 MB, free: 20.56 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005695/0.209, allocations: 232.5 kB / 479.9 MB, free: 20.44 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005877/0.2149, allocations: 3.698 MB / 483.6 MB, free: 18.95 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00379/0.2187, allocations: 2.388 MB / 486 MB, free: 17.77 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005763/0.2193, allocations: 0.9035 MB / 486.9 MB, free: 17.32 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.2195, allocations: 225.8 kB / 487.1 MB, free: 17.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005235/0.2201, allocations: 0.5424 MB / 487.7 MB, free: 16.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.2202, allocations: 229.9 kB / 487.9 MB, free: 16.91 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.428e-05/0.2203, allocations: 37.06 kB / 487.9 MB, free: 16.91 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008219/0.2285, allocations: 6.909 MB / 494.9 MB, free: 15.31 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.2286, allocations: 105.5 kB / 495 MB, free: 15.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.2287, allocations: 161.5 kB / 495.1 MB, free: 15.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007218/0.236, allocations: 5.539 MB / 0.4889 GB, free: 13.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.236, allocations: 0 / 0.4889 GB, free: 13.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.236, allocations: 0 / 0.4889 GB, free: 13.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.236, allocations: 0 / 0.4889 GB, free: 13.44 MB / 410.7 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.002568/0.2385, allocations: 1.179 MB / 0.4901 GB, free: 12.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2386, allocations: 10.03 kB / 0.4901 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.42e-05/0.2386, allocations: 72.53 kB / 0.4901 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009046/0.2395, allocations: 215 kB / 0.4904 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.2401, allocations: 312.5 kB / 0.4906 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.2401, allocations: 27.34 kB / 0.4907 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.2402, allocations: 32.52 kB / 0.4907 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009012/0.2411, allocations: 0.7296 MB / 0.4914 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.2411, allocations: 6.062 kB / 0.4914 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.2411, allocations: 24.06 kB / 0.4914 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.2411, allocations: 10.94 kB / 0.4915 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.2419, allocations: 0.5204 MB / 0.492 GB, free: 11.61 MB / 410.7 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.001553/0.2435, allocations: 1.895 MB / 0.4938 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008164/0.2443, allocations: 445.9 kB / 0.4942 GB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.2445, allocations: 182.3 kB / 0.4944 GB, free: 9.684 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02111/0.2656, allocations: 13.19 MB / 0.5073 GB, free: 3.352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.2656, allocations: 38.56 kB / 0.5073 GB, free: 3.305 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.563e-06/0.2656, allocations: 0 / 0.5073 GB, free: 3.305 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001375/0.267, allocations: 0.791 MB / 0.5081 GB, free: 2.508 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.267, allocations: 110.8 kB / 0.5082 GB, free: 2.375 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.2672, allocations: 316.4 kB / 0.5085 GB, free: 2.059 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2672, allocations: 29.7 kB / 0.5085 GB, free: 2.023 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.2673, allocations: 207 kB / 0.5087 GB, free: 1.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.2673, allocations: 91.25 kB / 0.5088 GB, free: 1.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.2674, allocations: 69.64 kB / 0.5089 GB, free: 1.656 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.607e-05/0.2674, allocations: 346.8 kB / 0.5092 GB, free: 1.309 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2676, allocations: 144.5 kB / 0.5094 GB, free: 1.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.2678, allocations: 287.7 kB / 0.5096 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.2682, allocations: 370.6 kB / 0.51 GB, free: 452 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2682, allocations: 0 / 0.51 GB, free: 452 kB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004526/0.2686, allocations: 421 kB / 0.5104 GB, free: 24 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.2687, allocations: 7.938 kB / 0.5104 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2687, allocations: 4 kB / 0.5104 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2687, allocations: 4 kB / 0.5104 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2689, allocations: 79.88 kB / 0.5105 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2689, allocations: 11.88 kB / 0.5105 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.269, allocations: 52.05 kB / 0.5105 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.2691, allocations: 12 kB / 0.5106 GB, free: 15.86 MB / 426.7 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.0001211/0.2692, allocations: 168.4 kB / 0.5107 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.288e-05/0.2692, allocations: 31.81 kB / 0.5107 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.2706, allocations: 1.985 MB / 0.5127 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.2707, allocations: 35.94 kB / 0.5127 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2707, allocations: 0 / 0.5127 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2707, allocations: 3.938 kB / 0.5127 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00072/0.2714, allocations: 0.9534 MB / 0.5137 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2714, allocations: 0 / 0.5137 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.2715, allocations: 75.88 kB / 0.5137 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2715, allocations: 0 / 0.5137 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2716, allocations: 15.97 kB / 0.5137 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2716, allocations: 0 / 0.5137 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2716, allocations: 4 kB / 0.5137 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008343/0.2724, allocations: 1.122 MB / 0.5148 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.2724, allocations: 87.14 kB / 0.5149 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.2725, allocations: 23.84 kB / 0.515 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.2726, allocations: 23.97 kB / 0.515 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/0.2727, allocations: 43.12 kB / 0.515 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2727, allocations: 8 kB / 0.515 GB, free: 11.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002176/0.2729, allocations: 327.1 kB / 0.5153 GB, free: 10.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2729, allocations: 4 kB / 0.5153 GB, free: 10.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003225/0.2761, allocations: 1.014 MB / 0.5163 GB, free: 9.867 MB / 426.7 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.003865/0.28, allocations: 2.86 MB / 0.5191 GB, free: 6.977 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006236/0.2806, allocations: 0.5945 MB / 0.5197 GB, free: 6.383 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2806, allocations: 0 / 0.5197 GB, free: 6.383 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.281, allocations: 413.1 kB / 0.5201 GB, free: 5.977 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.2816, allocations: 219.8 kB / 0.5203 GB, free: 5.777 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.2863, allocations: 4.99 MB / 0.5252 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.2865, allocations: 370.2 kB / 0.5255 GB, free: 248 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003105/0.2868, allocations: 277.1 kB / 0.5258 GB, free: 15.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.2871, allocations: 256.3 kB / 0.526 GB, free: 15.73 MB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/0.2871, allocations: 0 / 0.526 GB, free: 15.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05484/0.3419, allocations: 48.05 MB / 0.573 GB, free: 15.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.279/8.62, allocations: 4.062 kB / 0.573 GB, free: 15.89 MB / 490.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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: 10.973357417620718]