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.0007826/0.0007826, allocations: 97.39 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008303/0.0008304, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 45.91 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002833, allocations: 11.94 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1215, allocations: 63.47 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02578/0.1473, allocations: 26.23 MB / 0.496 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2678/0.4152, allocations: 12.4 MB / 0.5081 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005911/0.4158, allocations: 10.53 kB / 0.5081 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008769/0.4167, allocations: 197.6 kB / 0.5083 GB, free: 11.2 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0107/0.4274, allocations: 2.857 MB / 0.5111 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006695/0.4341, allocations: 1.833 MB / 0.5129 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.4359, allocations: 0.9934 MB / 0.5138 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004607/0.4364, allocations: 198.3 kB / 0.514 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008734/0.4373, allocations: 389.9 kB / 0.5144 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004112/0.4377, allocations: 254.5 kB / 0.5146 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.4378, allocations: 16.22 kB / 0.5146 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01646/0.4542, allocations: 6.833 MB / 0.5213 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.4545, allocations: 85.19 kB / 0.5214 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003016/0.4548, allocations: 102.7 kB / 0.5215 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007603/0.4624, allocations: 2.968 MB / 0.5244 GB, free: 10.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4625, allocations: 0 / 0.5244 GB, free: 10.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4625, allocations: 0 / 0.5244 GB, free: 10.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.4625, allocations: 0 / 0.5244 GB, free: 10.22 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.004773/0.4673, allocations: 1.187 MB / 0.5256 GB, free: 9.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4673, allocations: 10.28 kB / 0.5256 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.357e-05/0.4674, allocations: 62.2 kB / 0.5256 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.4691, allocations: 214.9 kB / 0.5258 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/0.4697, allocations: 357.6 kB / 0.5262 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.4697, allocations: 33.31 kB / 0.5262 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.4698, allocations: 24.69 kB / 0.5262 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.4714, allocations: 0.617 MB / 0.5268 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.4714, allocations: 5.094 kB / 0.5268 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.4714, allocations: 14.47 kB / 0.5269 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.4715, allocations: 7.219 kB / 0.5269 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.473, allocations: 0.5903 MB / 0.5274 GB, free: 8.613 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.002557/0.4756, allocations: 2.635 MB / 0.53 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.4771, allocations: 0.497 MB / 0.5305 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.4776, allocations: 222.1 kB / 0.5307 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.046/0.5236, allocations: 26.98 MB / 0.5571 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/0.5237, allocations: 45.7 kB / 0.5571 GB, free: 13.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.5237, allocations: 0 / 0.5571 GB, free: 13.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002853/0.5265, allocations: 0.8872 MB / 0.558 GB, free: 12.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.5266, allocations: 110.7 kB / 0.5581 GB, free: 12.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.527, allocations: 312.5 kB / 0.5584 GB, free: 12.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.527, allocations: 29.58 kB / 0.5584 GB, free: 12.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.5272, allocations: 202.2 kB / 0.5586 GB, free: 12.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.5273, allocations: 85.33 kB / 0.5587 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.5273, allocations: 3.938 kB / 0.5587 GB, free: 12.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.5274, allocations: 348.5 kB / 0.559 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.5278, allocations: 165.5 kB / 0.5592 GB, free: 11.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.5283, allocations: 268.5 kB / 0.5594 GB, free: 11.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.5287, allocations: 176.9 kB / 0.5596 GB, free: 11.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5287, allocations: 0 / 0.5596 GB, free: 11.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009897/0.5297, allocations: 483.1 kB / 0.5601 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.5298, allocations: 11.94 kB / 0.5601 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.5298, allocations: 4 kB / 0.5601 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.5298, allocations: 4 kB / 0.5601 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003488/0.5302, allocations: 99.88 kB / 0.5602 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5302, allocations: 7.938 kB / 0.5602 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.5306, allocations: 66.89 kB / 0.5602 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.5306, allocations: 17.94 kB / 0.5603 GB, free: 10.64 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 (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.0001881/0.5308, allocations: 155.8 kB / 0.5604 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.5309, allocations: 36.5 kB / 0.5604 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/0.5333, allocations: 1.97 MB / 0.5624 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/0.5334, allocations: 34.33 kB / 0.5624 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.5334, allocations: 7.969 kB / 0.5624 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.5334, allocations: 0 / 0.5624 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.5345, allocations: 1.013 MB / 0.5634 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.5345, allocations: 0 / 0.5634 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000335/0.5348, allocations: 95.8 kB / 0.5635 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.5348, allocations: 0 / 0.5635 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.5349, allocations: 8.656 kB / 0.5635 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.5349, allocations: 3.953 kB / 0.5635 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.5349, allocations: 0 / 0.5635 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.5364, allocations: 1.127 MB / 0.5646 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.5366, allocations: 232.7 kB / 0.5648 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.5367, allocations: 3.25 kB / 0.5648 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.537, allocations: 46.47 kB / 0.5649 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.5371, allocations: 42.98 kB / 0.5649 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.5371, allocations: 11.25 kB / 0.5649 GB, free: 7.113 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003532/0.5375, allocations: 326.4 kB / 0.5652 GB, free: 6.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.5375, allocations: 0 / 0.5652 GB, free: 6.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004159/0.5417, allocations: 1.004 MB / 0.5662 GB, free: 5.914 MB / 414.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.008704/0.5504, allocations: 2.755 MB / 0.5689 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.5517, allocations: 0.6482 MB / 0.5695 GB, free: 3.094 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.5517, allocations: 4 kB / 0.5695 GB, free: 3.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000693/0.5524, allocations: 0.5331 MB / 0.5701 GB, free: 2.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.5537, allocations: 203 kB / 0.5703 GB, free: 2.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00782/0.5615, allocations: 3.721 MB / 0.5739 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.5621, allocations: 0.9633 MB / 0.5748 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005404/0.5626, allocations: 274.8 kB / 0.5751 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/0.5629, allocations: 256.7 kB / 0.5753 GB, free: 14.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5629, allocations: 0 / 0.5753 GB, free: 14.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07444/0.6374, allocations: 46.4 MB / 0.6206 GB, free: 15.91 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.6376, allocations: 235.9 kB / 0.6209 GB, free: 15.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.203/4.841, allocations: 0 / 0.6209 GB, free: 15.67 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat