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.00149/0.00149, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.001579/0.001579, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.457/1.457, allocations: 230.2 MB / 254.5 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] 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.2335/0.2335, allocations: 46.9 MB / 357.4 MB, free: 10.43 MB / 286.1 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 0.002193/0.002193, allocations: 79.86 kB / 0.4912 GB, free: 8.246 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1192, allocations: 65.98 MB / 0.5557 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03279/0.152, allocations: 28.43 MB / 0.5834 GB, free: 9.586 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2589/0.4109, allocations: 13.32 MB / 0.5965 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003072/0.4112, allocations: 13 kB / 0.5965 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007039/0.4119, allocations: 253.8 kB / 0.5967 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008924/0.4208, allocations: 3.676 MB / 0.6003 GB, free: 3.285 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.4267, allocations: 2.372 MB / 0.6026 GB, free: 3.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.4279, allocations: 0.8977 MB / 0.6035 GB, free: 3.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003993/0.4283, allocations: 219.5 kB / 0.6037 GB, free: 3.219 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000796/0.4291, allocations: 448.3 kB / 0.6041 GB, free: 3.219 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.4295, allocations: 277.3 kB / 0.6044 GB, free: 3.215 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/0.4296, allocations: 33.41 kB / 0.6044 GB, free: 3.215 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0157/0.4453, allocations: 7.252 MB / 0.6115 GB, free: 3.148 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.4455, allocations: 102.4 kB / 0.6116 GB, free: 3.133 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.4459, allocations: 223.8 kB / 0.6118 GB, free: 3.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.4561, allocations: 4.426 MB / 0.6161 GB, free: 2.012 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4561, allocations: 0 / 0.6161 GB, free: 2.012 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4561, allocations: 2.625 kB / 0.6161 GB, free: 2.012 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.4561, allocations: 5.125 kB / 0.6162 GB, free: 2.008 MB / 446.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.003286/0.4594, allocations: 1.268 MB / 0.6174 GB, free: 1.148 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.4594, allocations: 9.031 kB / 0.6174 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.727e-05/0.4595, allocations: 67.41 kB / 0.6175 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.4612, allocations: 218.2 kB / 0.6177 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.4617, allocations: 373.6 kB / 0.618 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.4617, allocations: 27.72 kB / 0.6181 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.4618, allocations: 31.03 kB / 0.6181 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.4631, allocations: 0.5777 MB / 0.6186 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.4631, allocations: 1.375 kB / 0.6186 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.4632, allocations: 14.09 kB / 0.6187 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.4632, allocations: 11.94 kB / 0.6187 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.4646, allocations: 0.5254 MB / 0.6192 GB, free: 360 kB / 446.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.003042/0.4677, allocations: 2.627 MB / 0.6218 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.4692, allocations: 454.7 kB / 0.6222 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004232/0.4696, allocations: 174.8 kB / 0.6224 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05207/0.5217, allocations: 26.87 MB / 0.6486 GB, free: 5.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.5217, allocations: 38.55 kB / 0.6486 GB, free: 5.723 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.325e-06/0.5217, allocations: 0 / 0.6486 GB, free: 5.723 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00288/0.5246, allocations: 0.7936 MB / 0.6494 GB, free: 4.922 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.5247, allocations: 110.2 kB / 0.6495 GB, free: 4.793 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.5251, allocations: 308.4 kB / 0.6498 GB, free: 4.492 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.5251, allocations: 33.7 kB / 0.6498 GB, free: 4.453 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.5253, allocations: 208.5 kB / 0.65 GB, free: 4.246 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.914e-05/0.5253, allocations: 88.83 kB / 0.6501 GB, free: 4.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.5255, allocations: 77.64 kB / 0.6502 GB, free: 4.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5256, allocations: 340.2 kB / 0.6505 GB, free: 3.738 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.526, allocations: 141.4 kB / 0.6507 GB, free: 3.602 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.5265, allocations: 234.8 kB / 0.6509 GB, free: 3.332 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008063/0.5273, allocations: 359.5 kB / 0.6512 GB, free: 2.957 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.5273, allocations: 4 kB / 0.6512 GB, free: 2.953 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009946/0.5283, allocations: 419.8 kB / 0.6516 GB, free: 2.539 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.5283, allocations: 11.94 kB / 0.6516 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.5283, allocations: 0 / 0.6516 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.5283, allocations: 8.25 kB / 0.6516 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.5286, allocations: 87.88 kB / 0.6517 GB, free: 2.434 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.5286, allocations: 4 kB / 0.6517 GB, free: 2.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.5289, allocations: 47.72 kB / 0.6518 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.529, allocations: 19.98 kB / 0.6518 GB, free: 2.363 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.0001923/0.5292, allocations: 153.7 kB / 0.6519 GB, free: 2.203 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.5293, allocations: 48.67 kB / 0.652 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.5319, allocations: 1.896 MB / 0.6538 GB, free: 260 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-05/0.5319, allocations: 35.83 kB / 0.6539 GB, free: 224 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5319, allocations: 0 / 0.6539 GB, free: 224 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.5319, allocations: 3.984 kB / 0.6539 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.5331, allocations: 1.018 MB / 0.6549 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.5331, allocations: 0 / 0.6549 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.5335, allocations: 71.88 kB / 0.6549 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5335, allocations: 4 kB / 0.6549 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.5335, allocations: 8 kB / 0.655 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.5335, allocations: 3.938 kB / 0.655 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5335, allocations: 0 / 0.655 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.5351, allocations: 1.085 MB / 0.656 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.5353, allocations: 168.2 kB / 0.6562 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.5354, allocations: 27.69 kB / 0.6562 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.5356, allocations: 31.91 kB / 0.6562 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.5357, allocations: 31.95 kB / 0.6563 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.5357, allocations: 11.98 kB / 0.6563 GB, free: 13.69 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004086/0.5362, allocations: 331.1 kB / 0.6566 GB, free: 13.37 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5362, allocations: 0 / 0.6566 GB, free: 13.37 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003711/0.5399, allocations: 1.01 MB / 0.6576 GB, free: 12.36 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: 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.007326/0.5472, allocations: 2.707 MB / 0.6602 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.5485, allocations: 0.5793 MB / 0.6608 GB, free: 9.152 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5485, allocations: 0 / 0.6608 GB, free: 9.152 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006465/0.5491, allocations: 402.5 kB / 0.6612 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.5503, allocations: 212.3 kB / 0.6614 GB, free: 8.551 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.5604, allocations: 4.974 MB / 0.6662 GB, free: 3.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.561, allocations: 0.9638 MB / 0.6672 GB, free: 2.449 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005224/0.5615, allocations: 273.5 kB / 0.6674 GB, free: 2.191 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003342/0.5619, allocations: 263.3 kB / 0.6677 GB, free: 1.934 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5619, allocations: 0 / 0.6677 GB, free: 1.934 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09034/0.6522, allocations: 46.71 MB / 0.7133 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.85, allocations: 11.78 kB / 0.7133 GB, free: 3.336 MB / 0.5294 GB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.529912948142737]