Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 182.6 kB / 17.87 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2145/0.2145, allocations: 44.22 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003262, allocations: 10.53 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1323, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0277/0.1601, allocations: 23.79 MB / 495.3 MB, free: 5.809 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01474/0.1749, allocations: 11.38 MB / 0.4948 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005106/0.1754, allocations: 11.88 kB / 0.4949 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008111/0.1762, allocations: 207.1 kB / 0.4951 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00886/0.1851, allocations: 2.829 MB / 0.4978 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005871/0.191, allocations: 1.901 MB / 0.4997 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000991/0.192, allocations: 0.547 MB / 0.5002 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003659/0.1924, allocations: 204.9 kB / 0.5004 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008311/0.1932, allocations: 406.6 kB / 0.5008 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.1935, allocations: 199.2 kB / 0.501 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.1935, allocations: 20 kB / 0.501 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2502/0.4437, allocations: 7.003 MB / 0.5078 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.444, allocations: 78.75 kB / 0.5079 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.4443, allocations: 102.2 kB / 0.508 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00818/0.4525, allocations: 2.949 MB / 0.5109 GB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4525, allocations: 1.031 kB / 0.5109 GB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.4525, allocations: 0 / 0.5109 GB, free: 15.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.4525, allocations: 0 / 0.5109 GB, free: 15.75 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.00591/0.4585, allocations: 1.18 MB / 0.512 GB, free: 15.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4585, allocations: 9.281 kB / 0.5121 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.4586, allocations: 65.36 kB / 0.5121 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.4604, allocations: 220.1 kB / 0.5123 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.4609, allocations: 360.5 kB / 0.5127 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.4609, allocations: 27.47 kB / 0.5127 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.461, allocations: 27.28 kB / 0.5127 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.4625, allocations: 0.6108 MB / 0.5133 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.4626, allocations: 3.969 kB / 0.5133 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.949e-05/0.4626, allocations: 16.25 kB / 0.5133 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.4626, allocations: 8.062 kB / 0.5133 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.4643, allocations: 0.5939 MB / 0.5139 GB, free: 14.64 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.002873/0.4671, allocations: 2.638 MB / 0.5165 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.469, allocations: 0.4895 MB / 0.517 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0489/0.5179, allocations: 24.43 MB / 0.5408 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.518, allocations: 38.47 kB / 0.5409 GB, free: 12.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.854e-06/0.518, allocations: 0 / 0.5409 GB, free: 12.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002741/0.5207, allocations: 0.8849 MB / 0.5417 GB, free: 11.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/0.5208, allocations: 110.6 kB / 0.5418 GB, free: 11.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.5211, allocations: 316.3 kB / 0.5421 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.5212, allocations: 28.95 kB / 0.5422 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.5213, allocations: 197.2 kB / 0.5424 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.5214, allocations: 86.44 kB / 0.5424 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.5214, allocations: 3.312 kB / 0.5424 GB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5215, allocations: 351.4 kB / 0.5428 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.5219, allocations: 169.8 kB / 0.5429 GB, free: 11.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.5223, allocations: 259.9 kB / 0.5432 GB, free: 10.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000394/0.5227, allocations: 185.5 kB / 0.5434 GB, free: 10.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5227, allocations: 0 / 0.5434 GB, free: 10.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009197/0.5237, allocations: 476.5 kB / 0.5438 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5237, allocations: 7.828 kB / 0.5438 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.5237, allocations: 3.438 kB / 0.5438 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.5237, allocations: 5.281 kB / 0.5438 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.5241, allocations: 106.5 kB / 0.5439 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.5241, allocations: 6.469 kB / 0.5439 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/0.5245, allocations: 72.8 kB / 0.544 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.5245, allocations: 14.69 kB / 0.544 GB, free: 10.76 MB / 398.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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.5247, allocations: 164.3 kB / 0.5442 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.5247, allocations: 34.03 kB / 0.5442 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.5268, allocations: 1.973 MB / 0.5461 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.5269, allocations: 26.83 kB / 0.5462 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5269, allocations: 0 / 0.5462 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5269, allocations: 3.984 kB / 0.5462 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009635/0.5279, allocations: 1.017 MB / 0.5472 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.5279, allocations: 4 kB / 0.5472 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.5282, allocations: 93.95 kB / 0.5473 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.5282, allocations: 1.078 kB / 0.5473 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.5283, allocations: 8.625 kB / 0.5473 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.5283, allocations: 3.938 kB / 0.5473 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5283, allocations: 0 / 0.5473 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.5298, allocations: 1.139 MB / 0.5484 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.53, allocations: 214.3 kB / 0.5486 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.5301, allocations: 6.547 kB / 0.5486 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.5304, allocations: 49.72 kB / 0.5486 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.5305, allocations: 35.62 kB / 0.5487 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.5305, allocations: 11.94 kB / 0.5487 GB, free: 8.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003444/0.5309, allocations: 323.4 kB / 0.549 GB, free: 8.113 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5309, allocations: 0 / 0.549 GB, free: 8.113 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005188/0.5361, allocations: 0.9898 MB / 0.55 GB, free: 7.168 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01056/0.5467, allocations: 2.758 MB / 0.5527 GB, free: 4.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.5482, allocations: 0.6419 MB / 0.5533 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.5482, allocations: 0 / 0.5533 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006846/0.5489, allocations: 0.5375 MB / 0.5538 GB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.55, allocations: 203.2 kB / 0.554 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009328/0.5594, allocations: 5.208 MB / 0.5591 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.5599, allocations: 0.9793 MB / 0.56 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005438/0.5605, allocations: 289.2 kB / 0.5603 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.5607, allocations: 250.4 kB / 0.5606 GB, free: 13.84 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5607, allocations: 0 / 0.5606 GB, free: 13.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08062/0.6414, allocations: 46.3 MB / 0.6058 GB, free: 15.92 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002822/0.6417, allocations: 239.2 kB / 0.606 GB, free: 15.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.125/4.767, allocations: 0 / 0.606 GB, free: 15.68 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat