Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002151/0.002151, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001111, allocations: 89.17 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2931/0.2931, allocations: 43.48 MB / 353.5 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.659e-05, allocations: 4.219 kB / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4129, allocations: 58.84 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.277/8.69, allocations: 2.753 GB / 3.219 GB, free: 32.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/8.69, allocations: 81.52 kB / 3.219 GB, free: 32.36 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.158/9.849, allocations: 214 MB / 3.428 GB, free: 25.17 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.114e-06/9.849, allocations: 0 / 3.428 GB, free: 25.17 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 3.182e-05/9.849, allocations: 12 kB / 3.428 GB, free: 25.16 MB / 0.4952 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.005911/9.855, allocations: 1.195 MB / 3.43 GB, free: 23.92 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/9.855, allocations: 8.031 kB / 3.43 GB, free: 23.91 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002451/9.857, allocations: 223.3 kB / 3.43 GB, free: 23.69 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/9.858, allocations: 369.7 kB / 3.43 GB, free: 23.3 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/9.858, allocations: 16 kB / 3.43 GB, free: 23.28 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.025e-05/9.858, allocations: 16 kB / 3.43 GB, free: 23.27 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007651/9.859, allocations: 297.5 kB / 3.43 GB, free: 22.98 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007496/9.86, allocations: 385.4 kB / 3.431 GB, free: 22.56 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/9.86, allocations: 4 kB / 3.431 GB, free: 22.55 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.484e-05/9.86, allocations: 0 / 3.431 GB, free: 22.55 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/9.86, allocations: 19.92 kB / 3.431 GB, free: 22.54 MB / 0.4952 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.02843/9.888, allocations: 10.14 MB / 3.441 GB, free: 11.3 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006284/9.889, allocations: 235.2 kB / 3.441 GB, free: 11.06 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/9.889, allocations: 121.2 kB / 3.441 GB, free: 10.94 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4495/10.34, allocations: 24.14 MB / 3.465 GB, free: 73.87 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/10.34, allocations: 35 kB / 3.465 GB, free: 73.83 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=24): time 3.697e-06/10.34, allocations: 1.125 kB / 3.465 GB, free: 73.83 MB / 0.4952 GB Notification: Performance of matching and sorting (n=24): time 0.002891/10.34, allocations: 0.5107 MB / 3.465 GB, free: 73.79 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/10.34, allocations: 106.9 kB / 3.465 GB, free: 73.67 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/10.34, allocations: 229.8 kB / 3.465 GB, free: 73.57 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/10.34, allocations: 25.7 kB / 3.466 GB, free: 73.54 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/10.34, allocations: 274 kB / 3.466 GB, free: 73.37 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/10.34, allocations: 74.89 kB / 3.466 GB, free: 73.33 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/10.34, allocations: 0 / 3.466 GB, free: 73.33 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.916e-05/10.34, allocations: 322.5 kB / 3.466 GB, free: 73.02 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/10.34, allocations: 93.28 kB / 3.466 GB, free: 73.02 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/10.34, allocations: 177.7 kB / 3.466 GB, free: 72.91 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/10.34, allocations: 167.2 kB / 3.467 GB, free: 72.91 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/10.34, allocations: 1.094 kB / 3.467 GB, free: 72.91 MB / 0.4952 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001544/10.35, allocations: 340.3 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/10.35, allocations: 9.891 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/10.35, allocations: 4.656 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.45e-05/10.35, allocations: 5.094 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007649/10.35, allocations: 99 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/10.35, allocations: 5.109 kB / 3.467 GB, free: 72.88 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006931/10.35, allocations: 62.23 kB / 3.467 GB, free: 72.87 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/10.35, allocations: 16.97 kB / 3.467 GB, free: 72.87 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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 0.00015/10.35, allocations: 117.3 kB / 3.467 GB, free: 72.76 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001421/10.35, allocations: 300 kB / 3.467 GB, free: 72.71 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/10.35, allocations: 32.69 kB / 3.468 GB, free: 72.7 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003354/10.35, allocations: 1.629 MB / 3.469 GB, free: 72.52 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.326e-05/10.35, allocations: 25.25 kB / 3.469 GB, free: 72.52 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/10.35, allocations: 1.5 kB / 3.469 GB, free: 72.52 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/10.35, allocations: 7.531 kB / 3.469 GB, free: 72.52 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/10.35, allocations: 0.8389 MB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/10.35, allocations: 0 / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007194/10.36, allocations: 88.06 kB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.258e-05/10.36, allocations: 9.078 kB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/10.36, allocations: 4.328 kB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/10.36, allocations: 2.141 kB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/10.36, allocations: 0.9688 kB / 3.47 GB, free: 72.32 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/10.36, allocations: 0.9135 MB / 3.471 GB, free: 72.11 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003425/10.36, allocations: 215.4 kB / 3.471 GB, free: 71.97 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/10.36, allocations: 5.484 kB / 3.471 GB, free: 71.97 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/10.36, allocations: 41.38 kB / 3.471 GB, free: 71.97 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/10.36, allocations: 36.53 kB / 3.471 GB, free: 71.97 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/10.36, allocations: 12.23 kB / 3.471 GB, free: 71.97 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0004811/10.36, allocations: 287.8 kB / 3.472 GB, free: 71.88 MB / 0.4952 GB Notification: Performance of sort global known variables: time 5.81e-07/10.36, allocations: 0 / 3.472 GB, free: 71.88 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005916/10.37, allocations: 0.9941 MB / 3.473 GB, free: 71.88 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01307/10.38, allocations: 2.796 MB / 3.475 GB, free: 71.12 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001178/10.38, allocations: 453.3 kB / 3.476 GB, free: 71.11 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/10.38, allocations: 0 / 3.476 GB, free: 71.11 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0007097/10.38, allocations: 423.8 kB / 3.476 GB, free: 71.11 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/10.38, allocations: 168.4 kB / 3.476 GB, free: 71.1 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007104/10.39, allocations: 1.51 MB / 3.478 GB, free: 70.78 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/10.39, allocations: 0.9592 MB / 3.479 GB, free: 70.08 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005187/10.39, allocations: 234.8 kB / 3.479 GB, free: 70.07 MB / 0.4952 GB Notification: Performance of SimCode: time 1.363e-06/10.39, allocations: 0 / 3.479 GB, free: 70.07 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.455/13.85, allocations: 29.38 MB / 3.508 GB, free: 68.07 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat