Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001943/0.001943, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.788/1.788, allocations: 227.2 MB / 245 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 106.2 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5069/0.5069, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006429/0.0006432, allocations: 8.219 kB / 468.5 MB, free: 7.602 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4901/0.4908, allocations: 63.25 MB / 0.5193 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.584/7.075, allocations: 2.761 GB / 3.28 GB, free: 165.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/7.075, allocations: 90.53 kB / 3.28 GB, free: 165.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.8142/7.89, allocations: 219.6 MB / 3.494 GB, free: 96.6 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.512e-06/7.89, allocations: 2.188 kB / 3.494 GB, free: 96.6 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.917e-05/7.89, allocations: 11.88 kB / 3.494 GB, free: 96.6 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005978/7.896, allocations: 1.222 MB / 3.496 GB, free: 96.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/7.896, allocations: 6.906 kB / 3.496 GB, free: 96.09 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.167e-05/7.896, allocations: 70.06 kB / 3.496 GB, free: 96.05 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001739/7.898, allocations: 218.7 kB / 3.496 GB, free: 96.03 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006258/7.898, allocations: 370.4 kB / 3.496 GB, free: 95.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/7.898, allocations: 30.72 kB / 3.496 GB, free: 95.82 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/7.898, allocations: 26.56 kB / 3.496 GB, free: 95.82 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/7.9, allocations: 0.5972 MB / 3.497 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/7.9, allocations: 6.75 kB / 3.497 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/7.9, allocations: 13.86 kB / 3.497 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/7.9, allocations: 12.14 kB / 3.497 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/7.901, allocations: 0.5606 MB / 3.497 GB, free: 95.68 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.002649/7.904, allocations: 2.592 MB / 3.5 GB, free: 93.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/7.906, allocations: 472.5 kB / 3.5 GB, free: 93.78 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04134/7.947, allocations: 26.64 MB / 3.526 GB, free: 76.51 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/7.947, allocations: 33.31 kB / 3.527 GB, free: 76.47 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 2.364e-06/7.947, allocations: 0 / 3.527 GB, free: 76.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.002842/7.95, allocations: 0.8018 MB / 3.527 GB, free: 76.42 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/7.95, allocations: 109.8 kB / 3.527 GB, free: 76.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/7.95, allocations: 275.4 kB / 3.528 GB, free: 76.19 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/7.95, allocations: 34.02 kB / 3.528 GB, free: 76.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/7.951, allocations: 204.3 kB / 3.528 GB, free: 76.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.478e-05/7.951, allocations: 78.88 kB / 3.528 GB, free: 76.01 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/7.951, allocations: 7.75 kB / 3.528 GB, free: 76.01 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001143/7.951, allocations: 343.5 kB / 3.528 GB, free: 75.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/7.951, allocations: 144.7 kB / 3.528 GB, free: 75.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/7.952, allocations: 242.2 kB / 3.529 GB, free: 75.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/7.952, allocations: 153 kB / 3.529 GB, free: 75.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/7.952, allocations: 1.344 kB / 3.529 GB, free: 75.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00112/7.953, allocations: 434.3 kB / 3.529 GB, free: 75.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/7.953, allocations: 9.516 kB / 3.529 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/7.953, allocations: 3.75 kB / 3.529 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.284e-05/7.953, allocations: 7.297 kB / 3.529 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/7.954, allocations: 88.28 kB / 3.529 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/7.954, allocations: 5.688 kB / 3.529 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000481/7.954, allocations: 68.14 kB / 3.529 GB, free: 75.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/7.954, allocations: 16.64 kB / 3.529 GB, free: 75.52 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0002801/7.955, allocations: 163.6 kB / 3.53 GB, free: 75.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/7.955, allocations: 32.91 kB / 3.53 GB, free: 75.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/7.958, allocations: 1.924 MB / 3.531 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/7.958, allocations: 31.2 kB / 3.532 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/7.958, allocations: 4.203 kB / 3.532 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/7.958, allocations: 3.609 kB / 3.532 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/7.96, allocations: 0.9977 MB / 3.532 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/7.96, allocations: 0 / 3.532 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003445/7.96, allocations: 85.98 kB / 3.533 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/7.96, allocations: 1.219 kB / 3.533 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/7.96, allocations: 5.938 kB / 3.533 GB, free: 74.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/7.96, allocations: 6.422 kB / 3.533 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/7.96, allocations: 0 / 3.533 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/7.961, allocations: 1.084 MB / 3.534 GB, free: 74.75 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/7.962, allocations: 217.8 kB / 3.534 GB, free: 74.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.125e-05/7.962, allocations: 5.938 kB / 3.534 GB, free: 74.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000346/7.962, allocations: 46.42 kB / 3.534 GB, free: 74.61 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/7.962, allocations: 32.64 kB / 3.534 GB, free: 74.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/7.962, allocations: 15.42 kB / 3.534 GB, free: 74.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004191/7.963, allocations: 322.2 kB / 3.534 GB, free: 74.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/7.963, allocations: 0 / 3.534 GB, free: 74.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00585/7.969, allocations: 1.025 MB / 3.535 GB, free: 74.39 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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * 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.01042/7.979, allocations: 2.908 MB / 3.538 GB, free: 73.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001301/7.98, allocations: 0.5971 MB / 3.539 GB, free: 73.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/7.98, allocations: 0 / 3.539 GB, free: 73.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006033/7.981, allocations: 0.5212 MB / 3.539 GB, free: 73.47 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/7.982, allocations: 212.2 kB / 3.539 GB, free: 73.46 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008453/7.991, allocations: 5.157 MB / 3.544 GB, free: 70.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/7.991, allocations: 0.9753 MB / 3.545 GB, free: 69.86 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005463/7.992, allocations: 250.2 kB / 3.546 GB, free: 69.86 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/7.992, allocations: 253 kB / 3.546 GB, free: 69.85 MB / 0.5417 GB Notification: Performance of SimCode: time 1.042e-06/7.992, allocations: 0 / 3.546 GB, free: 69.85 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07407/8.066, allocations: 39.02 MB / 3.584 GB, free: 68.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/8.066, allocations: 231.2 kB / 3.584 GB, free: 68.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.579/11.64, allocations: 3.938 kB / 3.584 GB, free: 68.2 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat