Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_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.0009013/0.0009013, allocations: 96.44 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009564/0.0009564, allocations: 173.9 kB / 16.56 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4128/0.4128, allocations: 43.54 MB / 314.5 MB, free: 8.988 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006159/0.0006157, allocations: 23.98 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1306, allocations: 58.85 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2543/0.385, allocations: 23.8 MB / 466.7 MB, free: 36.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.3975, allocations: 11.36 MB / 478 MB, free: 30.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.398, allocations: 13.94 kB / 478 MB, free: 30.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006954/0.3987, allocations: 205.4 kB / 478.2 MB, free: 30.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009521/0.4082, allocations: 2.819 MB / 481 MB, free: 28.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006922/0.4151, allocations: 1.904 MB / 483 MB, free: 27.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.4165, allocations: 0.5456 MB / 483.5 MB, free: 27.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.4169, allocations: 200.5 kB / 483.7 MB, free: 27.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007906/0.4177, allocations: 410.5 kB / 484.1 MB, free: 27.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.4179, allocations: 195.5 kB / 484.3 MB, free: 27.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.4179, allocations: 16.56 kB / 484.3 MB, free: 27.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.4333, allocations: 7.014 MB / 491.3 MB, free: 25.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.4335, allocations: 75.34 kB / 491.4 MB, free: 25.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.4338, allocations: 106.1 kB / 491.5 MB, free: 25.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008577/0.4424, allocations: 2.945 MB / 494.4 MB, free: 25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4424, allocations: 1.188 kB / 494.4 MB, free: 25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4424, allocations: 0 / 494.4 MB, free: 25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.4424, allocations: 4 kB / 494.4 MB, free: 25 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.005886/0.4483, allocations: 1.177 MB / 495.6 MB, free: 24.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.4484, allocations: 9.844 kB / 495.6 MB, free: 24.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.4485, allocations: 64.16 kB / 495.7 MB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.4504, allocations: 227 kB / 495.9 MB, free: 24.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006132/0.451, allocations: 355 kB / 496.3 MB, free: 23.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.4511, allocations: 26.34 kB / 496.3 MB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.875e-05/0.4511, allocations: 27.27 kB / 496.3 MB, free: 23.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.4529, allocations: 0.6121 MB / 496.9 MB, free: 23.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.4529, allocations: 5.094 kB / 496.9 MB, free: 23.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.453, allocations: 12.78 kB / 496.9 MB, free: 23.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.453, allocations: 8.875 kB / 496.9 MB, free: 23.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.4548, allocations: 0.5918 MB / 497.5 MB, free: 23.43 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.003068/0.4579, allocations: 2.647 MB / 0.4885 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.4596, allocations: 0.4943 MB / 0.4889 GB, free: 21.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04783/0.5074, allocations: 24.42 MB / 0.5128 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.5075, allocations: 36.69 kB / 0.5128 GB, free: 2.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.594e-06/0.5075, allocations: 1.375 kB / 0.5128 GB, free: 2.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.002948/0.5105, allocations: 0.8901 MB / 0.5137 GB, free: 2.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.5106, allocations: 105.5 kB / 0.5138 GB, free: 2.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.5109, allocations: 316.4 kB / 0.5141 GB, free: 2.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.5109, allocations: 32.92 kB / 0.5141 GB, free: 2.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.511, allocations: 203.3 kB / 0.5143 GB, free: 1.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.5111, allocations: 79.84 kB / 0.5144 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/0.5111, allocations: 6.594 kB / 0.5144 GB, free: 1.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.398e-05/0.5112, allocations: 345.2 kB / 0.5147 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.5116, allocations: 172.9 kB / 0.5149 GB, free: 1.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.512, allocations: 259.4 kB / 0.5152 GB, free: 1.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.5125, allocations: 179.4 kB / 0.5153 GB, free: 1.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5125, allocations: 2.531 kB / 0.5153 GB, free: 1.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009779/0.5135, allocations: 485.5 kB / 0.5158 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.5135, allocations: 14.03 kB / 0.5158 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.5135, allocations: 0 / 0.5158 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.5135, allocations: 5.281 kB / 0.5158 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.5139, allocations: 96.91 kB / 0.5159 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.5139, allocations: 10.16 kB / 0.5159 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.5143, allocations: 69.89 kB / 0.516 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.5143, allocations: 17.86 kB / 0.516 GB, free: 0.8125 MB / 382.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.0001633/0.5145, allocations: 168 kB / 0.5162 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.5146, allocations: 30.84 kB / 0.5162 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.5169, allocations: 1.957 MB / 0.5181 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/0.5169, allocations: 32.41 kB / 0.5181 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5169, allocations: 0 / 0.5181 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.5169, allocations: 4 kB / 0.5181 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.518, allocations: 1.019 MB / 0.5191 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.518, allocations: 0 / 0.5191 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.5184, allocations: 99.39 kB / 0.5192 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5184, allocations: 6.531 kB / 0.5192 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.5184, allocations: 10.67 kB / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.5184, allocations: 1.469 kB / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5184, allocations: 0 / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.52, allocations: 1.134 MB / 0.5203 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.5202, allocations: 223.4 kB / 0.5206 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.5203, allocations: 8 kB / 0.5206 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.5206, allocations: 47.95 kB / 0.5206 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.5207, allocations: 35.89 kB / 0.5206 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.5207, allocations: 12 kB / 0.5207 GB, free: 13.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.5211, allocations: 327.1 kB / 0.521 GB, free: 13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5211, allocations: 0 / 0.521 GB, free: 13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004755/0.5259, allocations: 0.9916 MB / 0.5219 GB, free: 12 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.009573/0.5354, allocations: 2.743 MB / 0.5246 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.5369, allocations: 0.6545 MB / 0.5253 GB, free: 8.594 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5369, allocations: 0 / 0.5253 GB, free: 8.594 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007383/0.5377, allocations: 0.5376 MB / 0.5258 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.5389, allocations: 193.7 kB / 0.526 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008604/0.5475, allocations: 5.196 MB / 0.531 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/0.5481, allocations: 0.9875 MB / 0.532 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006372/0.5488, allocations: 270.5 kB / 0.5323 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.5491, allocations: 259.3 kB / 0.5325 GB, free: 1.047 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5491, allocations: 0 / 0.5325 GB, free: 1.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0807/0.6298, allocations: 46.27 MB / 0.5777 GB, free: 2.777 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/0.6301, allocations: 225 kB / 0.5779 GB, free: 2.539 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.063/4.693, allocations: 4 kB / 0.5779 GB, free: 2.535 MB / 446.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat