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.00114/0.00114, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007767/0.0007767, allocations: 84.3 kB / 292.1 MB, free: 5.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1776/0.1776, allocations: 45.16 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.107e-05/3.111e-05, allocations: 4 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 63.24 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.905/6.02, allocations: 2.761 GB / 3.272 GB, free: 25.11 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/6.021, allocations: 79.58 kB / 3.272 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.7031/6.724, allocations: 218.9 MB / 3.486 GB, free: 37.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/6.724, allocations: 4 kB / 3.486 GB, free: 37.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.271e-05/6.724, allocations: 7.984 kB / 3.486 GB, free: 37.38 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.004217/6.728, allocations: 1.173 MB / 3.487 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/6.728, allocations: 8.031 kB / 3.487 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.297e-05/6.728, allocations: 66.55 kB / 3.487 GB, free: 36.07 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/6.73, allocations: 223.3 kB / 3.487 GB, free: 35.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/6.73, allocations: 374 kB / 3.488 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/6.73, allocations: 24.78 kB / 3.488 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/6.73, allocations: 28 kB / 3.488 GB, free: 35.39 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/6.731, allocations: 0.5847 MB / 3.488 GB, free: 34.77 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/6.731, allocations: 4 kB / 3.488 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/6.732, allocations: 12 kB / 3.488 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/6.732, allocations: 11.95 kB / 3.488 GB, free: 34.74 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009819/6.733, allocations: 0.49 MB / 3.489 GB, free: 34.25 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.002206/6.735, allocations: 2.59 MB / 3.491 GB, free: 31.42 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/6.736, allocations: 422.3 kB / 3.492 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/6.736, allocations: 140.7 kB / 3.492 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04023/6.776, allocations: 26.72 MB / 3.518 GB, free: 0.7344 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/6.776, allocations: 38.55 kB / 3.518 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=25): time 1.904e-06/6.776, allocations: 0 / 3.518 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of matching and sorting (n=25): time 0.001811/6.778, allocations: 0.6295 MB / 3.519 GB, free: 52 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2516/7.03, allocations: 105.7 kB / 3.519 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/7.03, allocations: 266.3 kB / 3.519 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.2e-05/7.03, allocations: 31.72 kB / 3.519 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/7.03, allocations: 200.5 kB / 3.519 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/7.03, allocations: 88.39 kB / 3.519 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/7.03, allocations: 5.906 kB / 3.519 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.847e-05/7.03, allocations: 342.2 kB / 3.52 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/7.031, allocations: 89.97 kB / 3.52 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/7.031, allocations: 190.3 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/7.031, allocations: 110.4 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/7.031, allocations: 0 / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000525/7.032, allocations: 333.1 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/7.032, allocations: 6.281 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/7.032, allocations: 2.641 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/7.032, allocations: 6.188 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/7.032, allocations: 87.73 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/7.032, allocations: 9.844 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/7.032, allocations: 63 kB / 3.52 GB, free: 109.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/7.032, allocations: 21.36 kB / 3.52 GB, free: 109.9 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 () * 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 7.816e-05/7.032, allocations: 126 kB / 3.521 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/7.033, allocations: 33.12 kB / 3.521 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/7.034, allocations: 1.844 MB / 3.522 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/7.034, allocations: 29.59 kB / 3.522 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/7.034, allocations: 0.9688 kB / 3.522 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/7.034, allocations: 7.641 kB / 3.522 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000846/7.035, allocations: 1.007 MB / 3.523 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/7.035, allocations: 3.375 kB / 3.523 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/7.036, allocations: 78.09 kB / 3.524 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/7.036, allocations: 4.719 kB / 3.524 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/7.036, allocations: 7.953 kB / 3.524 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/7.036, allocations: 0.5625 kB / 3.524 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/7.036, allocations: 1.031 kB / 3.524 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007811/7.036, allocations: 0.9903 MB / 3.524 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/7.037, allocations: 218.7 kB / 3.525 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/7.037, allocations: 4.141 kB / 3.525 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/7.037, allocations: 54.03 kB / 3.525 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.929e-05/7.037, allocations: 28.39 kB / 3.525 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/7.037, allocations: 9.906 kB / 3.525 GB, free: 109 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002656/7.037, allocations: 324 kB / 3.525 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/7.037, allocations: 3.938 kB / 3.525 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00421/7.042, allocations: 1.009 MB / 3.526 GB, free: 108.9 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 () * 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.006256/7.048, allocations: 2.819 MB / 3.529 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0006582/7.048, allocations: 0.4978 MB / 3.529 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/7.048, allocations: 3.812 kB / 3.529 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004047/7.049, allocations: 473.5 kB / 3.53 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/7.05, allocations: 193.1 kB / 3.53 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/7.053, allocations: 1.593 MB / 3.532 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/7.053, allocations: 0.9736 MB / 3.532 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004232/7.054, allocations: 243.6 kB / 3.533 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/7.054, allocations: 256.9 kB / 3.533 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.713e-06/7.054, allocations: 0 / 3.533 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06682/7.121, allocations: 41.03 MB / 3.573 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/7.121, allocations: 202.4 kB / 3.573 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.901/10.02, allocations: 1.031 kB / 3.573 GB, free: 106.4 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