Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001777/0.001777, allocations: 198.8 kB / 17.08 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 227.2 MB / 245 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001038/0.001038, allocations: 100.6 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4149/0.4149, allocations: 45.23 MB / 394.6 MB, free: 31.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003382, allocations: 11.98 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4673/0.4677, allocations: 63.24 MB / 0.5193 GB, free: 37.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.754/7.222, allocations: 2.831 GB / 3.35 GB, free: 69.18 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/7.222, allocations: 84.06 kB / 3.35 GB, free: 69.14 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.03/9.252, allocations: 0.5839 GB / 3.934 GB, free: 44.58 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.583e-06/9.253, allocations: 5.688 kB / 3.934 GB, free: 44.58 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001332/9.253, allocations: 44.28 kB / 3.934 GB, free: 44.57 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01118/9.264, allocations: 3.057 MB / 3.937 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/9.264, allocations: 10.38 kB / 3.937 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004478/9.264, allocations: 193.9 kB / 3.937 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00363/9.268, allocations: 0.5431 MB / 3.938 GB, free: 42.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003489/9.272, allocations: 1.445 MB / 3.939 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/9.272, allocations: 118.2 kB / 3.939 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/9.272, allocations: 126.8 kB / 3.939 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004206/9.276, allocations: 2.293 MB / 3.942 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/9.276, allocations: 9.016 kB / 3.942 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001478/9.276, allocations: 54.94 kB / 3.942 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/9.276, allocations: 100.2 kB / 3.942 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004214/9.281, allocations: 2.064 MB / 3.944 GB, free: 42.05 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.01192/9.293, allocations: 9.811 MB / 3.953 GB, free: 36.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003189/9.296, allocations: 1.416 MB / 3.955 GB, free: 36.09 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04291/9.339, allocations: 27 MB / 3.981 GB, free: 34.31 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002938/9.342, allocations: 1.062 MB / 3.982 GB, free: 34.21 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=96): time 2.915e-06/9.342, allocations: 0 / 3.982 GB, free: 34.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=104): time 0.01268/9.354, allocations: 5.321 MB / 3.987 GB, free: 33.35 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/9.355, allocations: 279.5 kB / 3.988 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/9.356, allocations: 1.035 MB / 3.989 GB, free: 32.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/9.356, allocations: 43.52 kB / 3.989 GB, free: 32.84 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/9.357, allocations: 0.6386 MB / 3.989 GB, free: 32.59 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002649/9.357, allocations: 360.8 kB / 3.99 GB, free: 32.37 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/9.357, allocations: 24.39 kB / 3.99 GB, free: 32.37 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001445/9.357, allocations: 361.2 kB / 3.99 GB, free: 32.06 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/9.358, allocations: 0.6914 MB / 3.991 GB, free: 32.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/9.36, allocations: 0.9974 MB / 3.992 GB, free: 31.72 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/9.361, allocations: 0.8295 MB / 3.993 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/9.361, allocations: 3.062 kB / 3.993 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003435/9.364, allocations: 2.036 MB / 3.995 GB, free: 30.72 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009268/9.365, allocations: 2.761 MB / 3.997 GB, free: 27.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/9.365, allocations: 11.61 kB / 3.997 GB, free: 27.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004848/9.366, allocations: 139.8 kB / 3.997 GB, free: 27.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/9.367, allocations: 320.4 kB / 3.998 GB, free: 27.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007732/9.368, allocations: 1.251 MB / 3.999 GB, free: 26.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/9.369, allocations: 158.5 kB / 3.999 GB, free: 26.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/9.369, allocations: 63.2 kB / 3.999 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/9.37, allocations: 3.281 kB / 3.999 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003108/9.373, allocations: 1.86 MB / 4.001 GB, free: 25.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/9.373, allocations: 10.81 kB / 4.001 GB, free: 25.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004767/9.373, allocations: 140.9 kB / 4.001 GB, free: 25.81 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/9.374, allocations: 316.3 kB / 4.001 GB, free: 25.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000722/9.375, allocations: 1.252 MB / 4.003 GB, free: 24.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/9.376, allocations: 164.4 kB / 4.003 GB, free: 24.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/9.377, allocations: 57.23 kB / 4.003 GB, free: 24.59 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001004/9.378, allocations: 0.5405 MB / 4.003 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/9.378, allocations: 141.1 kB / 4.003 GB, free: 24.15 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005494/9.383, allocations: 4.82 MB / 4.008 GB, free: 22.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.052e-05/9.383, allocations: 53.12 kB / 4.008 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/9.383, allocations: 0 / 4.008 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004267/9.388, allocations: 4.038 MB / 4.012 GB, free: 20.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008298/9.396, allocations: 6.873 MB / 4.019 GB, free: 17.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/9.396, allocations: 4 kB / 4.019 GB, free: 17.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/9.397, allocations: 244.7 kB / 4.019 GB, free: 17.22 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007085/9.398, allocations: 195 kB / 4.019 GB, free: 17.16 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.471e-05/9.398, allocations: 42.64 kB / 4.019 GB, free: 17.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007858/9.399, allocations: 1.288 MB / 4.021 GB, free: 15.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/9.399, allocations: 3.25 kB / 4.021 GB, free: 15.99 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005283/9.404, allocations: 4.453 MB / 4.025 GB, free: 14.06 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/9.405, allocations: 0.551 MB / 4.026 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/9.405, allocations: 34.73 kB / 4.026 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009732/9.406, allocations: 130 kB / 4.026 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/9.407, allocations: 100.1 kB / 4.026 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.956e-05/9.407, allocations: 40.47 kB / 4.026 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001405/9.408, allocations: 0.9958 MB / 4.027 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/9.408, allocations: 0 / 4.027 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008458/9.417, allocations: 2.231 MB / 4.029 GB, free: 12.48 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01667/9.433, allocations: 7.288 MB / 4.036 GB, free: 6.141 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006084/9.439, allocations: 3.239 MB / 4.039 GB, free: 3.266 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/9.439, allocations: 4 kB / 4.039 GB, free: 3.262 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002078/9.441, allocations: 1.481 MB / 4.041 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/9.445, allocations: 0.6267 MB / 4.041 GB, free: 1.457 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/9.462, allocations: 12.11 MB / 4.053 GB, free: 5.973 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/9.464, allocations: 1.722 MB / 4.055 GB, free: 4.57 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00305/9.467, allocations: 1.606 MB / 4.056 GB, free: 3.613 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/9.468, allocations: 0.8442 MB / 4.057 GB, free: 2.836 MB / 0.573 GB Notification: Performance of SimCode: time 9.91e-07/9.468, allocations: 0 / 4.057 GB, free: 2.836 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4372/9.905, allocations: 83.94 MB / 4.139 GB, free: 68.64 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/9.905, allocations: 242.1 kB / 4.139 GB, free: 68.31 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.017/14.92, allocations: 0 / 4.139 GB, free: 68.31 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat