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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001574/0.001574, allocations: 117.2 kB / 17.78 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 200.6 kB / 18.73 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3323, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03508/0.3674, allocations: 28.26 MB / 0.5582 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01789/0.3853, allocations: 13.3 MB / 0.5712 GB, free: 8.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005293/0.3859, allocations: 11.94 kB / 0.5712 GB, free: 8.008 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009015/0.3869, allocations: 246.4 kB / 0.5714 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.3983, allocations: 3.668 MB / 0.575 GB, free: 4.102 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008945/0.4073, allocations: 2.364 MB / 0.5773 GB, free: 1.738 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.409, allocations: 0.8963 MB / 0.5782 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006143/0.4096, allocations: 248.7 kB / 0.5785 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.4107, allocations: 438.2 kB / 0.5789 GB, free: 168 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004744/0.4112, allocations: 267 kB / 0.5791 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.789e-05/0.4112, allocations: 32 kB / 0.5792 GB, free: 15.87 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0168/0.428, allocations: 7.235 MB / 0.5862 GB, free: 8.629 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.4283, allocations: 103.7 kB / 0.5863 GB, free: 8.527 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003987/0.4287, allocations: 223 kB / 0.5865 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.4419, allocations: 4.427 MB / 0.5909 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.104e-05/0.442, allocations: 0 / 0.5909 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.442, allocations: 0 / 0.5909 GB, free: 3.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.442, allocations: 0 / 0.5909 GB, free: 3.871 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.003861/0.4459, allocations: 1.279 MB / 0.5921 GB, free: 2.539 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.446, allocations: 8.031 kB / 0.5921 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001042/0.4461, allocations: 66.73 kB / 0.5922 GB, free: 2.457 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001777/0.4479, allocations: 212.5 kB / 0.5924 GB, free: 2.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.4486, allocations: 379.5 kB / 0.5927 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.4486, allocations: 25.03 kB / 0.5928 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.4487, allocations: 32.12 kB / 0.5928 GB, free: 1.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4503, allocations: 0.5823 MB / 0.5934 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.4504, allocations: 0 / 0.5934 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.4504, allocations: 16 kB / 0.5934 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.4504, allocations: 11.94 kB / 0.5934 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.4521, allocations: 0.525 MB / 0.5939 GB, free: 0.6094 MB / 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.003527/0.4556, allocations: 2.625 MB / 0.5965 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.4573, allocations: 462.1 kB / 0.5969 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004645/0.4577, allocations: 184.7 kB / 0.5971 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05621/0.514, allocations: 26.88 MB / 0.6233 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/0.5141, allocations: 34.56 kB / 0.6234 GB, free: 14.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.746e-06/0.5141, allocations: 0 / 0.6234 GB, free: 14.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003181/0.5173, allocations: 0.7936 MB / 0.6241 GB, free: 13.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.5174, allocations: 106.8 kB / 0.6242 GB, free: 13.83 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.5178, allocations: 312.5 kB / 0.6245 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.5179, allocations: 33.7 kB / 0.6246 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.5181, allocations: 204.5 kB / 0.6248 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.5182, allocations: 87.27 kB / 0.6249 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.5183, allocations: 69.69 kB / 0.6249 GB, free: 13.11 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.5185, allocations: 346.8 kB / 0.6252 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004008/0.5189, allocations: 135.9 kB / 0.6254 GB, free: 12.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000514/0.5194, allocations: 239.7 kB / 0.6256 GB, free: 12.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008691/0.5203, allocations: 358 kB / 0.6259 GB, free: 11.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5203, allocations: 0 / 0.6259 GB, free: 11.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001152/0.5215, allocations: 432.8 kB / 0.6264 GB, free: 11.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.5215, allocations: 8 kB / 0.6264 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.5215, allocations: 0 / 0.6264 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.5216, allocations: 7.938 kB / 0.6264 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.5219, allocations: 88.19 kB / 0.6265 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.522, allocations: 7.984 kB / 0.6265 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.5223, allocations: 47.75 kB / 0.6265 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.5223, allocations: 12 kB / 0.6265 GB, free: 11.38 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.0002271/0.5226, allocations: 161.7 kB / 0.6267 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.136e-05/0.5227, allocations: 35.77 kB / 0.6267 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.5255, allocations: 1.909 MB / 0.6286 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-05/0.5255, allocations: 31.94 kB / 0.6286 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5255, allocations: 3.938 kB / 0.6286 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5255, allocations: 0 / 0.6286 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.5268, allocations: 1.02 MB / 0.6296 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.5268, allocations: 0 / 0.6296 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.5271, allocations: 71.88 kB / 0.6297 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.5272, allocations: 0 / 0.6297 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.5272, allocations: 19.92 kB / 0.6297 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.5272, allocations: 0 / 0.6297 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.5272, allocations: 0 / 0.6297 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.529, allocations: 1.085 MB / 0.6308 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.5292, allocations: 168.2 kB / 0.6309 GB, free: 6.773 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.5293, allocations: 27.78 kB / 0.6309 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.5296, allocations: 23.97 kB / 0.631 GB, free: 6.723 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.5297, allocations: 35.95 kB / 0.631 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.5297, allocations: 11.94 kB / 0.631 GB, free: 6.676 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003846/0.5301, allocations: 323.1 kB / 0.6313 GB, free: 6.359 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5301, allocations: 4 kB / 0.6313 GB, free: 6.355 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003306/0.5334, allocations: 1.01 MB / 0.6323 GB, free: 5.344 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.007225/0.5407, allocations: 2.714 MB / 0.635 GB, free: 2.605 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.5421, allocations: 0.5872 MB / 0.6355 GB, free: 2.02 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5421, allocations: 4 kB / 0.6355 GB, free: 2.016 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007508/0.5428, allocations: 0.5102 MB / 0.636 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.5441, allocations: 214.2 kB / 0.6362 GB, free: 1.301 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008602/0.5527, allocations: 4.978 MB / 0.6411 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.5533, allocations: 0.9638 MB / 0.642 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000518/0.5539, allocations: 278.2 kB / 0.6423 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003439/0.5542, allocations: 255.3 kB / 0.6426 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.5542, allocations: 0 / 0.6426 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08752/0.6417, allocations: 46.65 MB / 0.6881 GB, free: 12.15 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.85, allocations: 7.984 kB / 0.6881 GB, free: 12.14 MB / 0.545 GB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches