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.001156/0.001156, allocations: 104.2 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.1 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001512, allocations: 73 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1073, allocations: 62.45 MB / 479.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03014/0.1374, allocations: 29.14 MB / 0.4966 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2159/0.3534, allocations: 14.26 MB / 0.5105 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.3538, allocations: 13.72 kB / 0.5106 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007751/0.3546, allocations: 217.8 kB / 0.5108 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009526/0.3641, allocations: 2.925 MB / 0.5136 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.37, allocations: 1.973 MB / 0.5155 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.3715, allocations: 1.144 MB / 0.5167 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.3719, allocations: 211.6 kB / 0.5169 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007853/0.3727, allocations: 410.6 kB / 0.5173 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.3731, allocations: 283.3 kB / 0.5175 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.3731, allocations: 16.56 kB / 0.5175 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01528/0.3884, allocations: 7.129 MB / 0.5245 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.3887, allocations: 83.67 kB / 0.5246 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004617/0.3891, allocations: 211.8 kB / 0.5248 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.4001, allocations: 4.411 MB / 0.5291 GB, free: 8.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4001, allocations: 0 / 0.5291 GB, free: 8.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4001, allocations: 5.219 kB / 0.5291 GB, free: 8.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.327e-05/0.4001, allocations: 3.938 kB / 0.5291 GB, free: 8.816 MB / 382.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.0035/0.4036, allocations: 1.248 MB / 0.5303 GB, free: 7.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4037, allocations: 9.688 kB / 0.5303 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.614e-05/0.4038, allocations: 69 kB / 0.5304 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.4055, allocations: 205.9 kB / 0.5306 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004159/0.406, allocations: 362 kB / 0.5309 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.406, allocations: 30.56 kB / 0.531 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.406, allocations: 26.97 kB / 0.531 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.4075, allocations: 0.6015 MB / 0.5316 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.4075, allocations: 0 / 0.5316 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.4076, allocations: 12.12 kB / 0.5316 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.4076, allocations: 8.25 kB / 0.5316 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.4092, allocations: 0.5492 MB / 0.5321 GB, free: 6.742 MB / 382.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.002356/0.4116, allocations: 2.622 MB / 0.5347 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.4131, allocations: 467.1 kB / 0.5351 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004461/0.4135, allocations: 205.2 kB / 0.5353 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0484/0.462, allocations: 26.77 MB / 0.5615 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.462, allocations: 35.44 kB / 0.5615 GB, free: 9.066 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.4621, allocations: 0 / 0.5615 GB, free: 9.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003209/0.4653, allocations: 0.8213 MB / 0.5623 GB, free: 8.238 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/0.4654, allocations: 110.8 kB / 0.5624 GB, free: 8.105 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.4658, allocations: 316.5 kB / 0.5627 GB, free: 7.793 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.653e-05/0.4658, allocations: 29.7 kB / 0.5628 GB, free: 7.758 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.466, allocations: 204.2 kB / 0.5629 GB, free: 7.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.693e-05/0.4661, allocations: 85.81 kB / 0.563 GB, free: 7.473 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.4662, allocations: 69.59 kB / 0.5631 GB, free: 7.398 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4664, allocations: 346.8 kB / 0.5634 GB, free: 7.051 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.4668, allocations: 149.7 kB / 0.5636 GB, free: 6.906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005081/0.4673, allocations: 243.8 kB / 0.5638 GB, free: 6.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008927/0.4682, allocations: 385 kB / 0.5642 GB, free: 6.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.4683, allocations: 0 / 0.5642 GB, free: 6.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001093/0.4694, allocations: 440.8 kB / 0.5646 GB, free: 5.781 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.4694, allocations: 8 kB / 0.5646 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4694, allocations: 0 / 0.5646 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.4694, allocations: 11.92 kB / 0.5646 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.4698, allocations: 104 kB / 0.5647 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.4698, allocations: 4 kB / 0.5647 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.4702, allocations: 51.7 kB / 0.5648 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.4703, allocations: 19.98 kB / 0.5648 GB, free: 5.59 MB / 414.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.0001839/0.4704, allocations: 161.7 kB / 0.5649 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.952e-05/0.4706, allocations: 35.62 kB / 0.565 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002587/0.4731, allocations: 1.928 MB / 0.5668 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/0.4732, allocations: 31.89 kB / 0.5669 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4732, allocations: 0 / 0.5669 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4732, allocations: 0 / 0.5669 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.4744, allocations: 1.017 MB / 0.5679 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4744, allocations: 0 / 0.5679 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.4747, allocations: 75.94 kB / 0.5679 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.4747, allocations: 4 kB / 0.5679 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.4748, allocations: 11.98 kB / 0.568 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.4748, allocations: 3.938 kB / 0.568 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4748, allocations: 3.938 kB / 0.568 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.4764, allocations: 1.092 MB / 0.569 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.4766, allocations: 163.8 kB / 0.5692 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.244e-05/0.4767, allocations: 23.69 kB / 0.5692 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.477, allocations: 51.83 kB / 0.5693 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4772, allocations: 31.95 kB / 0.5693 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.4772, allocations: 10.5 kB / 0.5693 GB, free: 0.875 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003872/0.4776, allocations: 331.1 kB / 0.5696 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4776, allocations: 0 / 0.5696 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003689/0.4813, allocations: 0.9916 MB / 0.5706 GB, free: 15.56 MB / 430.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.008414/0.4897, allocations: 2.738 MB / 0.5733 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.4912, allocations: 0.6111 MB / 0.5739 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.4912, allocations: 0 / 0.5739 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009056/0.4921, allocations: 0.5127 MB / 0.5744 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4935, allocations: 216 kB / 0.5746 GB, free: 11.56 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009991/0.5035, allocations: 5.388 MB / 0.5798 GB, free: 6.039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005232/0.5041, allocations: 0.9638 MB / 0.5808 GB, free: 5.047 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005383/0.5046, allocations: 268.4 kB / 0.581 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.505, allocations: 263.3 kB / 0.5813 GB, free: 4.527 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/0.505, allocations: 0 / 0.5813 GB, free: 4.527 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07463/0.5796, allocations: 46.03 MB / 0.6262 GB, free: 6.668 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.5799, allocations: 247.2 kB / 0.6265 GB, free: 6.418 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.25/4.83, allocations: 0 / 0.6265 GB, free: 6.418 MB / 478.1 MB (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