Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00236/0.00236, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000966/0.0009659, allocations: 99.62 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3858/0.3858, allocations: 45.22 MB / 394.6 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002785, allocations: 11.98 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3702, allocations: 63.25 MB / 0.5193 GB, free: 37.66 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.207/7.577, allocations: 2.777 GB / 3.296 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/7.577, allocations: 94.86 kB / 3.297 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.8403/8.418, allocations: 237.2 MB / 3.528 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.484e-06/8.418, allocations: 0 / 3.528 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.318e-05/8.418, allocations: 11.39 kB / 3.528 GB, free: 83.87 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006196/8.424, allocations: 1.341 MB / 3.529 GB, free: 83 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.449e-05/8.424, allocations: 6.875 kB / 3.529 GB, free: 83 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/8.424, allocations: 71.44 kB / 3.53 GB, free: 82.94 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001944/8.426, allocations: 250.2 kB / 3.53 GB, free: 82.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007999/8.427, allocations: 410.3 kB / 3.53 GB, free: 82.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/8.427, allocations: 24.34 kB / 3.53 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/8.427, allocations: 29 kB / 3.53 GB, free: 82.58 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/8.429, allocations: 0.6324 MB / 3.531 GB, free: 82.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/8.429, allocations: 0 / 3.531 GB, free: 82.32 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/8.429, allocations: 23.48 kB / 3.531 GB, free: 82.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/8.429, allocations: 9.312 kB / 3.531 GB, free: 82.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/8.43, allocations: 0.5933 MB / 3.531 GB, free: 82.16 MB / 0.5417 GB 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.00289/8.433, allocations: 2.625 MB / 3.534 GB, free: 80.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/8.434, allocations: 464.8 kB / 3.534 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0418/8.476, allocations: 26.64 MB / 3.56 GB, free: 61.54 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/8.476, allocations: 30.56 kB / 3.561 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 2.966e-06/8.476, allocations: 0 / 3.561 GB, free: 61.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002705/8.479, allocations: 0.8373 MB / 3.561 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/8.479, allocations: 110.6 kB / 3.561 GB, free: 61.14 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/8.48, allocations: 330.5 kB / 3.562 GB, free: 60.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/8.48, allocations: 29.7 kB / 3.562 GB, free: 60.95 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/8.48, allocations: 230.1 kB / 3.562 GB, free: 60.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/8.48, allocations: 85.58 kB / 3.562 GB, free: 60.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/8.48, allocations: 4 kB / 3.562 GB, free: 60.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.751e-05/8.48, allocations: 349.4 kB / 3.562 GB, free: 60.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/8.48, allocations: 162.2 kB / 3.563 GB, free: 60.31 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/8.481, allocations: 259.5 kB / 3.563 GB, free: 60.14 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/8.481, allocations: 179.4 kB / 3.563 GB, free: 60.08 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/8.481, allocations: 3.969 kB / 3.563 GB, free: 60.08 MB / 0.5417 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009739/8.482, allocations: 496.7 kB / 3.563 GB, free: 59.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002243/8.482, allocations: 1.048 MB / 3.565 GB, free: 58.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/8.482, allocations: 0 / 3.565 GB, free: 58.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/8.482, allocations: 11.7 kB / 3.565 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/8.483, allocations: 105.8 kB / 3.565 GB, free: 58.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/8.483, allocations: 4 kB / 3.565 GB, free: 58.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/8.483, allocations: 70.8 kB / 3.565 GB, free: 58.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/8.483, allocations: 30.05 kB / 3.565 GB, free: 58.42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.583e-06/8.483, allocations: 0 / 3.565 GB, free: 58.42 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008675/8.484, allocations: 424.3 kB / 3.565 GB, free: 58.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/8.484, allocations: 8 kB / 3.565 GB, free: 58.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.47e-06/8.484, allocations: 7.938 kB / 3.565 GB, free: 58.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/8.485, allocations: 107.3 kB / 3.565 GB, free: 57.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/8.485, allocations: 4 kB / 3.565 GB, free: 57.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/8.485, allocations: 70.38 kB / 3.565 GB, free: 57.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/8.485, allocations: 19.47 kB / 3.565 GB, free: 57.88 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,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 initialization (38): * Single equations (assignments): 38 * 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.0002578/8.485, allocations: 236.2 kB / 3.566 GB, free: 57.64 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.21e-05/8.485, allocations: 43.48 kB / 3.566 GB, free: 57.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/8.488, allocations: 1.982 MB / 3.568 GB, free: 55.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/8.488, allocations: 34.58 kB / 3.568 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/8.488, allocations: 0 / 3.568 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/8.488, allocations: 0 / 3.568 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/8.489, allocations: 1.044 MB / 3.569 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/8.489, allocations: 3.938 kB / 3.569 GB, free: 54.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/8.489, allocations: 94.22 kB / 3.569 GB, free: 54.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/8.489, allocations: 11.94 kB / 3.569 GB, free: 54.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/8.489, allocations: 8 kB / 3.569 GB, free: 54.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/8.489, allocations: 0 / 3.569 GB, free: 54.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/8.489, allocations: 0 / 3.569 GB, free: 54.79 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/8.491, allocations: 1.122 MB / 3.57 GB, free: 53.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/8.491, allocations: 268.8 kB / 3.57 GB, free: 53.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.508e-05/8.491, allocations: 7.953 kB / 3.57 GB, free: 53.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000349/8.491, allocations: 59.25 kB / 3.57 GB, free: 53.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.868e-05/8.491, allocations: 38.98 kB / 3.57 GB, free: 53.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/8.491, allocations: 11.8 kB / 3.57 GB, free: 53.43 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000372/8.492, allocations: 368.3 kB / 3.571 GB, free: 53.11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.31e-07/8.492, allocations: 0 / 3.571 GB, free: 53.11 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005618/8.497, allocations: 1.212 MB / 3.572 GB, free: 51.93 MB / 0.5417 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.01028/8.508, allocations: 3.052 MB / 3.575 GB, free: 49.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001906/8.51, allocations: 0.8549 MB / 3.576 GB, free: 48.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/8.51, allocations: 384 / 3.576 GB, free: 48.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00056/8.51, allocations: 0.5307 MB / 3.576 GB, free: 47.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/8.512, allocations: 219.4 kB / 3.576 GB, free: 47.83 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007029/8.519, allocations: 4.479 MB / 3.581 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/8.519, allocations: 0.9997 MB / 3.582 GB, free: 42.58 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000869/8.52, allocations: 0.5452 MB / 3.582 GB, free: 42.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/8.52, allocations: 275.3 kB / 3.582 GB, free: 41.96 MB / 0.5417 GB Notification: Performance of SimCode: time 9.42e-07/8.52, allocations: 3.938 kB / 3.582 GB, free: 41.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06282/8.583, allocations: 41.28 MB / 3.623 GB, free: 0.8359 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/8.583, allocations: 222 kB / 3.623 GB, free: 0.5977 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/12.15, allocations: 0 / 3.623 GB, free: 0.5977 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat