Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.13 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 83.84 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2979, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03152/0.3295, allocations: 28.28 MB / 0.5582 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.3462, allocations: 13.3 MB / 0.5712 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/0.3466, allocations: 11.94 kB / 0.5712 GB, free: 8.004 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00073/0.3473, allocations: 246.4 kB / 0.5715 GB, free: 7.762 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009532/0.3569, allocations: 3.659 MB / 0.575 GB, free: 4.102 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006228/0.3632, allocations: 2.379 MB / 0.5774 GB, free: 1.727 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.3644, allocations: 0.8963 MB / 0.5782 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000416/0.3648, allocations: 256.7 kB / 0.5785 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007605/0.3656, allocations: 442.2 kB / 0.5789 GB, free: 144 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.366, allocations: 271 kB / 0.5792 GB, free: 15.87 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.567e-05/0.3661, allocations: 40 kB / 0.5792 GB, free: 15.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01402/0.3801, allocations: 7.231 MB / 0.5863 GB, free: 8.598 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.3803, allocations: 107.7 kB / 0.5864 GB, free: 8.492 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.3806, allocations: 215.1 kB / 0.5866 GB, free: 8.281 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009977/0.3906, allocations: 4.431 MB / 0.5909 GB, free: 3.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3907, allocations: 0 / 0.5909 GB, free: 3.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3907, allocations: 0 / 0.5909 GB, free: 3.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.3907, allocations: 0 / 0.5909 GB, free: 3.84 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.003161/0.3939, allocations: 1.29 MB / 0.5922 GB, free: 2.496 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3939, allocations: 8.031 kB / 0.5922 GB, free: 2.488 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.252e-05/0.394, allocations: 66.73 kB / 0.5922 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/0.3958, allocations: 204.5 kB / 0.5924 GB, free: 2.215 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.3964, allocations: 383.5 kB / 0.5928 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.3964, allocations: 28.97 kB / 0.5928 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.3965, allocations: 36.06 kB / 0.5929 GB, free: 1.742 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.3981, allocations: 0.5901 MB / 0.5934 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3982, allocations: 11.98 kB / 0.5934 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.3982, allocations: 16 kB / 0.5935 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.3982, allocations: 11.94 kB / 0.5935 GB, free: 1.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.4, allocations: 0.5406 MB / 0.594 GB, free: 0.5273 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.003407/0.4034, allocations: 2.633 MB / 0.5966 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.4052, allocations: 470.1 kB / 0.597 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.4057, allocations: 192.7 kB / 0.5972 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05423/0.4599, allocations: 26.87 MB / 0.6234 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.46, allocations: 42.55 kB / 0.6235 GB, free: 14.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 1.974e-06/0.46, allocations: 0 / 0.6235 GB, free: 14.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003074/0.4631, allocations: 0.817 MB / 0.6243 GB, free: 13.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.4632, allocations: 106.8 kB / 0.6244 GB, free: 13.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.4636, allocations: 316.5 kB / 0.6247 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.4636, allocations: 29.7 kB / 0.6247 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.4638, allocations: 204.5 kB / 0.6249 GB, free: 13.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.971e-05/0.4639, allocations: 95.2 kB / 0.625 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.464, allocations: 73.69 kB / 0.6251 GB, free: 12.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4642, allocations: 342.7 kB / 0.6254 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.4646, allocations: 151.9 kB / 0.6255 GB, free: 12.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00054/0.4652, allocations: 243.7 kB / 0.6258 GB, free: 12.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009501/0.4661, allocations: 378 kB / 0.6261 GB, free: 11.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4661, allocations: 0 / 0.6261 GB, free: 11.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001132/0.4673, allocations: 457 kB / 0.6266 GB, free: 11.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4673, allocations: 4 kB / 0.6266 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4673, allocations: 4 kB / 0.6266 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4674, allocations: 7.938 kB / 0.6266 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/0.4677, allocations: 83.88 kB / 0.6267 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.4678, allocations: 7.984 kB / 0.6267 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.4681, allocations: 55.94 kB / 0.6267 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.4681, allocations: 12 kB / 0.6267 GB, free: 11.18 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: 4 (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.0001889/0.4683, allocations: 157.8 kB / 0.6269 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.477e-05/0.4684, allocations: 39.77 kB / 0.6269 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002731/0.4711, allocations: 1.92 MB / 0.6288 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/0.4712, allocations: 27.95 kB / 0.6288 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4712, allocations: 7.984 kB / 0.6288 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4712, allocations: 0 / 0.6288 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.4723, allocations: 1.016 MB / 0.6298 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4723, allocations: 0 / 0.6298 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.4727, allocations: 83.86 kB / 0.6299 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4727, allocations: 0 / 0.6299 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.4727, allocations: 11.94 kB / 0.6299 GB, free: 7.844 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.4727, allocations: 0 / 0.6299 GB, free: 7.844 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4727, allocations: 4 kB / 0.6299 GB, free: 7.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.4744, allocations: 1.104 MB / 0.631 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.4746, allocations: 172.2 kB / 0.6312 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.128e-05/0.4747, allocations: 31.72 kB / 0.6312 GB, free: 6.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002848/0.475, allocations: 27.95 kB / 0.6312 GB, free: 6.473 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.772e-05/0.4751, allocations: 31.95 kB / 0.6313 GB, free: 6.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.4751, allocations: 15.94 kB / 0.6313 GB, free: 6.426 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003854/0.4755, allocations: 323.1 kB / 0.6316 GB, free: 6.109 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4755, allocations: 4 kB / 0.6316 GB, free: 6.105 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002472/0.478, allocations: 1.01 MB / 0.6326 GB, free: 5.094 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: 18 ($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) * 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.006215/0.4842, allocations: 2.733 MB / 0.6352 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.4856, allocations: 0.6106 MB / 0.6358 GB, free: 1.727 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4856, allocations: 0 / 0.6358 GB, free: 1.727 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007906/0.4864, allocations: 0.5205 MB / 0.6363 GB, free: 1.203 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.4876, allocations: 225.8 kB / 0.6366 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008963/0.4966, allocations: 5.044 MB / 0.6415 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007713/0.4974, allocations: 0.9599 MB / 0.6424 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005469/0.498, allocations: 266.8 kB / 0.6427 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.4984, allocations: 259.3 kB / 0.6429 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of SimCode: time 5.11e-07/0.4984, allocations: 0 / 0.6429 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08929/0.5877, allocations: 46.82 MB / 0.6886 GB, free: 11.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.71, allocations: 7.875 kB / 0.6887 GB, free: 11.6 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches