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.001873/0.001873, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002287/0.002287, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.504/1.504, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.2295/0.2295, allocations: 46.93 MB / 360.8 MB, free: 4.156 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.002318/0.002318, allocations: 75.88 kB / 0.4962 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3173, allocations: 66.09 MB / 0.5607 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03468/0.352, allocations: 28.65 MB / 0.5887 GB, free: 7.367 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.3702, allocations: 13.39 MB / 0.6018 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004408/0.3706, allocations: 15.81 kB / 0.6018 GB, free: 9.914 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008575/0.3715, allocations: 258.4 kB / 0.602 GB, free: 9.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009967/0.3815, allocations: 3.667 MB / 0.6056 GB, free: 5.996 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006514/0.388, allocations: 2.397 MB / 0.608 GB, free: 3.602 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001355/0.3893, allocations: 0.908 MB / 0.6089 GB, free: 2.691 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.3897, allocations: 208.9 kB / 0.6091 GB, free: 2.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008171/0.3905, allocations: 458.2 kB / 0.6095 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003959/0.3909, allocations: 282.9 kB / 0.6098 GB, free: 1.754 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.391, allocations: 32 kB / 0.6098 GB, free: 1.723 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01416/0.4051, allocations: 7.266 MB / 0.6169 GB, free: 10.45 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.4053, allocations: 103.7 kB / 0.617 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.4057, allocations: 223 kB / 0.6172 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4159, allocations: 4.427 MB / 0.6215 GB, free: 5.688 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4159, allocations: 0 / 0.6215 GB, free: 5.688 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4159, allocations: 4 kB / 0.6215 GB, free: 5.684 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.4159, allocations: 4 kB / 0.6215 GB, free: 5.68 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.003367/0.4193, allocations: 1.188 MB / 0.6227 GB, free: 4.457 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.4193, allocations: 12.03 kB / 0.6227 GB, free: 4.445 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.146e-05/0.4194, allocations: 62.73 kB / 0.6228 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.4211, allocations: 220.4 kB / 0.623 GB, free: 4.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006801/0.4218, allocations: 309.2 kB / 0.6233 GB, free: 3.828 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.4218, allocations: 33.03 kB / 0.6233 GB, free: 3.797 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.4219, allocations: 28.12 kB / 0.6233 GB, free: 3.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.4234, allocations: 0.5785 MB / 0.6239 GB, free: 3.152 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4234, allocations: 7.938 kB / 0.6239 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.4235, allocations: 12 kB / 0.6239 GB, free: 3.133 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.4235, allocations: 11.98 kB / 0.6239 GB, free: 3.121 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.4251, allocations: 0.5293 MB / 0.6244 GB, free: 2.59 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.003396/0.4285, allocations: 2.527 MB / 0.6269 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.4301, allocations: 442.2 kB / 0.6273 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.4305, allocations: 168.7 kB / 0.6275 GB, free: 15.24 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04681/0.4773, allocations: 13.15 MB / 0.6403 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.108e-05/0.4773, allocations: 38.5 kB / 0.6404 GB, free: 2.023 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.575e-06/0.4773, allocations: 4 kB / 0.6404 GB, free: 2.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002976/0.4803, allocations: 0.7897 MB / 0.6411 GB, free: 1.223 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/0.4804, allocations: 110.8 kB / 0.6412 GB, free: 1.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/0.4808, allocations: 304.5 kB / 0.6415 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.926e-05/0.4808, allocations: 29.7 kB / 0.6416 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.481, allocations: 216.5 kB / 0.6418 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.493e-05/0.4811, allocations: 91.27 kB / 0.6419 GB, free: 460 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.4812, allocations: 65.69 kB / 0.6419 GB, free: 388 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4814, allocations: 346.8 kB / 0.6423 GB, free: 32 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.4818, allocations: 135.9 kB / 0.6424 GB, free: 15.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.4823, allocations: 238.9 kB / 0.6426 GB, free: 15.63 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008364/0.4831, allocations: 361.1 kB / 0.643 GB, free: 15.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4831, allocations: 0 / 0.643 GB, free: 15.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001054/0.4842, allocations: 429.8 kB / 0.6434 GB, free: 14.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4842, allocations: 11.98 kB / 0.6434 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4842, allocations: 320 / 0.6434 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.4842, allocations: 11.94 kB / 0.6434 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.4846, allocations: 79.89 kB / 0.6435 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.4846, allocations: 4 kB / 0.6435 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.4849, allocations: 43.75 kB / 0.6435 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.4849, allocations: 19.98 kB / 0.6435 GB, free: 14.65 MB / 494.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.0002475/0.4851, allocations: 158 kB / 0.6437 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.75e-05/0.4852, allocations: 35.77 kB / 0.6437 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.488, allocations: 1.975 MB / 0.6456 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.488, allocations: 27.95 kB / 0.6457 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.488, allocations: 3.938 kB / 0.6457 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.488, allocations: 0 / 0.6457 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.4891, allocations: 1.019 MB / 0.6467 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4892, allocations: 0 / 0.6467 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.4895, allocations: 79.86 kB / 0.6467 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.4895, allocations: 4 kB / 0.6467 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.4895, allocations: 7.938 kB / 0.6468 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.4895, allocations: 4 kB / 0.6468 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4895, allocations: 0 / 0.6468 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.4911, allocations: 1.112 MB / 0.6478 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4912, allocations: 87.16 kB / 0.6479 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.43e-05/0.4913, allocations: 35.72 kB / 0.648 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.4916, allocations: 23.97 kB / 0.648 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/0.4917, allocations: 31.94 kB / 0.648 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.4917, allocations: 16 kB / 0.648 GB, free: 9.945 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003966/0.4921, allocations: 327.1 kB / 0.6483 GB, free: 9.625 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4921, allocations: 0 / 0.6483 GB, free: 9.625 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002786/0.4949, allocations: 1.01 MB / 0.6493 GB, free: 8.613 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.005923/0.5008, allocations: 2.721 MB / 0.652 GB, free: 5.863 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.5021, allocations: 0.5872 MB / 0.6526 GB, free: 5.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5021, allocations: 4 kB / 0.6526 GB, free: 5.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006943/0.5028, allocations: 425 kB / 0.653 GB, free: 4.852 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.504, allocations: 208.3 kB / 0.6532 GB, free: 4.652 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008465/0.5124, allocations: 5.013 MB / 0.6581 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.5131, allocations: 0.9638 MB / 0.659 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005022/0.5136, allocations: 283 kB / 0.6593 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.5139, allocations: 255.3 kB / 0.6595 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of SimCode: time 7.21e-07/0.5139, allocations: 0 / 0.6595 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09979/0.6137, allocations: 47.6 MB / 0.706 GB, free: 14.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/15.05, allocations: 3.938 kB / 0.706 GB, free: 14.47 MB / 0.545 GB " [Timeout remaining time 645] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/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: 18.645489213988185]