Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.2 MB / 245 MB, free: 7.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 97.92 kB / 297.2 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4103/0.4103, allocations: 45.22 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 4.219 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4531/0.4535, allocations: 63.24 MB / 0.5193 GB, free: 43.87 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7224/1.176, allocations: 318.6 MB / 0.8304 GB, free: 30.92 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/1.176, allocations: 93.58 kB / 0.8305 GB, free: 30.87 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6245/1.801, allocations: 99.85 MB / 0.928 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.703e-06/1.801, allocations: 0 / 0.928 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.968e-05/1.801, allocations: 15.48 kB / 0.928 GB, free: 140.9 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002496/1.804, allocations: 0.9017 MB / 0.9289 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.804, allocations: 10.19 kB / 0.9289 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002335/1.804, allocations: 71.02 kB / 0.9289 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003915/1.804, allocations: 62.12 kB / 0.929 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/1.805, allocations: 466 kB / 0.9294 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.701e-05/1.806, allocations: 27.66 kB / 0.9295 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-05/1.806, allocations: 27.84 kB / 0.9295 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/1.807, allocations: 0.5222 MB / 0.93 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/1.807, allocations: 4.812 kB / 0.93 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.425e-05/1.807, allocations: 13.75 kB / 0.93 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.797e-05/1.807, allocations: 28.5 kB / 0.93 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000986/1.808, allocations: 453.7 kB / 0.9305 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0039/1.812, allocations: 2.264 MB / 0.9327 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/1.812, allocations: 226.5 kB / 0.9329 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001302/1.813, allocations: 1.012 MB / 0.9339 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/1.814, allocations: 219.5 kB / 0.9341 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 2.244e-06/1.814, allocations: 3.938 kB / 0.9341 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.000806/1.815, allocations: 454.2 kB / 0.9345 GB, free: 137 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/1.815, allocations: 240.1 kB / 0.9348 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006766/1.815, allocations: 468.6 kB / 0.9352 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/1.815, allocations: 32.83 kB / 0.9352 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/1.816, allocations: 287.9 kB / 0.9355 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/1.816, allocations: 56.47 kB / 0.9356 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/1.816, allocations: 5.906 kB / 0.9356 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.354e-05/1.816, allocations: 360.8 kB / 0.9359 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/1.816, allocations: 125.9 kB / 0.936 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/1.816, allocations: 301.9 kB / 0.9363 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/1.817, allocations: 196.6 kB / 0.9365 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/1.817, allocations: 1.375 kB / 0.9365 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008729/1.818, allocations: 0.5054 MB / 0.937 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003984/1.818, allocations: 1.689 MB / 0.9387 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/1.818, allocations: 9.25 kB / 0.9387 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/1.818, allocations: 8.875 kB / 0.9387 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/1.818, allocations: 81.34 kB / 0.9388 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/1.818, allocations: 6.531 kB / 0.9388 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/1.819, allocations: 62.42 kB / 0.9388 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/1.819, allocations: 24.92 kB / 0.9389 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/1.819, allocations: 4.719 kB / 0.9389 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000708/1.82, allocations: 464.9 kB / 0.9393 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.82, allocations: 8.109 kB / 0.9393 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/1.82, allocations: 6.875 kB / 0.9393 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/1.82, allocations: 74.42 kB / 0.9394 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/1.82, allocations: 17.23 kB / 0.9394 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004406/1.821, allocations: 48.06 kB / 0.9394 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.391e-05/1.821, allocations: 20.5 kB / 0.9395 GB, free: 133.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0003549/1.821, allocations: 300 kB / 0.9398 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/1.821, allocations: 52.12 kB / 0.9398 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006375/1.822, allocations: 362.6 kB / 0.9401 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/1.822, allocations: 5.328 kB / 0.9402 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/1.822, allocations: 4.922 kB / 0.9402 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/1.822, allocations: 0 / 0.9402 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005045/1.822, allocations: 409.9 kB / 0.9405 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/1.822, allocations: 2 kB / 0.9406 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/1.822, allocations: 32.11 kB / 0.9406 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/1.822, allocations: 0.875 kB / 0.9406 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/1.822, allocations: 7.828 kB / 0.9406 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/1.822, allocations: 5.562 kB / 0.9406 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.822, allocations: 6.703 kB / 0.9406 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/1.823, allocations: 355.9 kB / 0.9409 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/1.823, allocations: 133.5 kB / 0.9411 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-05/1.823, allocations: 12.41 kB / 0.9411 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/1.824, allocations: 26.09 kB / 0.9411 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/1.824, allocations: 13.39 kB / 0.9411 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/1.824, allocations: 11.09 kB / 0.9411 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004396/1.824, allocations: 365.9 kB / 0.9415 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/1.824, allocations: 0 / 0.9415 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001783/1.826, allocations: 487.8 kB / 0.9419 GB, free: 131.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.002207/1.828, allocations: 1.308 MB / 0.9432 GB, free: 131 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001009/1.829, allocations: 0.6376 MB / 0.9438 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.829, allocations: 1.188 kB / 0.9438 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002089/1.829, allocations: 187 kB / 0.944 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000967/1.83, allocations: 183.7 kB / 0.9442 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/1.834, allocations: 4.306 MB / 0.9484 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/1.835, allocations: 0.8587 MB / 0.9492 GB, free: 126 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.000717/1.835, allocations: 161.5 kB / 0.9494 GB, free: 126 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/1.836, allocations: 153.9 kB / 0.9495 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of SimCode: time 9.31e-07/1.836, allocations: 0 / 0.9495 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04263/1.878, allocations: 16.68 MB / 0.9658 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/1.879, allocations: 218 kB / 0.966 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.903/4.781, allocations: 3.938 kB / 0.966 GB, free: 124.5 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat