Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001793/0.001793, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.581/1.581, allocations: 225.6 MB / 234.8 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 99.66 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 45.14 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.967e-05/1.969e-05, allocations: 0 / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.159, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.903/8.062, allocations: 2.778 GB / 3.282 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/8.062, allocations: 85.53 kB / 3.282 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.309/10.37, allocations: 0.6382 GB / 3.92 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.773e-06/10.37, allocations: 0 / 3.92 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001021/10.37, allocations: 41.97 kB / 3.92 GB, free: 45.73 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009649/10.38, allocations: 2.445 MB / 3.923 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.489e-05/10.38, allocations: 9.812 kB / 3.923 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008074/10.39, allocations: 0.951 MB / 3.924 GB, free: 44.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002383/10.39, allocations: 0.9925 MB / 3.925 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-05/10.39, allocations: 53.66 kB / 3.925 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/10.39, allocations: 70.03 kB / 3.925 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00206/10.39, allocations: 1.21 MB / 3.926 GB, free: 44.19 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/10.4, allocations: 1.435 MB / 3.927 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/10.4, allocations: 3.938 kB / 3.927 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/10.4, allocations: 14.09 kB / 3.927 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/10.4, allocations: 32.47 kB / 3.927 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1374/10.53, allocations: 76.6 MB / 4.002 GB, free: 24.72 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/10.54, allocations: 0.7742 MB / 4.003 GB, free: 24.68 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/10.54, allocations: 370.5 kB / 4.003 GB, free: 24.67 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03394/10.57, allocations: 18.25 MB / 4.021 GB, free: 25.71 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/10.57, allocations: 53.16 kB / 4.021 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=72): time 4.689e-06/10.57, allocations: 0 / 4.021 GB, free: 25.66 MB / 0.5886 GB Notification: Performance of matching and sorting (n=72): time 0.006945/10.58, allocations: 1.902 MB / 4.023 GB, free: 24.56 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/10.58, allocations: 272 kB / 4.023 GB, free: 24.24 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/10.58, allocations: 0.7256 MB / 4.024 GB, free: 23.75 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001649/10.58, allocations: 25.7 kB / 4.024 GB, free: 23.71 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004465/10.58, allocations: 0.6723 MB / 4.025 GB, free: 23.29 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002609/10.58, allocations: 244.8 kB / 4.025 GB, free: 23.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/10.58, allocations: 0 / 4.025 GB, free: 23.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001732/10.58, allocations: 343.7 kB / 4.025 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005281/10.58, allocations: 329.2 kB / 4.026 GB, free: 22.61 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007306/10.58, allocations: 0.7523 MB / 4.026 GB, free: 21.87 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/10.58, allocations: 0.7539 MB / 4.027 GB, free: 21.45 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/10.58, allocations: 7.953 kB / 4.027 GB, free: 21.44 MB / 0.5886 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.004538/10.59, allocations: 1.45 MB / 4.029 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002129/10.59, allocations: 4.882 MB / 4.033 GB, free: 15.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/10.59, allocations: 12 kB / 4.033 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.065e-05/10.59, allocations: 24 kB / 4.033 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/10.59, allocations: 364.1 kB / 4.034 GB, free: 15.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.998e-05/10.59, allocations: 23.69 kB / 4.034 GB, free: 15.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/10.59, allocations: 229.6 kB / 4.034 GB, free: 14.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/10.59, allocations: 71.62 kB / 4.034 GB, free: 14.77 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/10.59, allocations: 4 kB / 4.034 GB, free: 14.76 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003572/10.6, allocations: 1.182 MB / 4.035 GB, free: 14.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/10.6, allocations: 12 kB / 4.035 GB, free: 14.01 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.656e-05/10.6, allocations: 20 kB / 4.035 GB, free: 13.99 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/10.6, allocations: 356.8 kB / 4.036 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.305e-05/10.6, allocations: 27.73 kB / 4.036 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/10.6, allocations: 183.9 kB / 4.036 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/10.6, allocations: 71.33 kB / 4.036 GB, free: 13.46 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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.0004096/10.6, allocations: 156.7 kB / 4.036 GB, free: 13.3 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003511/10.6, allocations: 1.023 MB / 4.037 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003478/10.6, allocations: 114.6 kB / 4.037 GB, free: 12.32 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005242/10.61, allocations: 4.384 MB / 4.041 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/10.61, allocations: 32.89 kB / 4.041 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/10.61, allocations: 4 kB / 4.041 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/10.61, allocations: 7.844 kB / 4.041 GB, free: 8.492 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003654/10.61, allocations: 2.359 MB / 4.044 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/10.61, allocations: 0 / 4.044 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009917/10.62, allocations: 258.3 kB / 4.044 GB, free: 6.457 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.842e-05/10.62, allocations: 7.938 kB / 4.044 GB, free: 6.449 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.966e-05/10.62, allocations: 7.844 kB / 4.044 GB, free: 6.445 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/10.62, allocations: 4 kB / 4.044 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/10.62, allocations: 0 / 4.044 GB, free: 6.441 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/10.62, allocations: 1.659 MB / 4.046 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/10.62, allocations: 0.97 MB / 4.047 GB, free: 4.168 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005359/10.62, allocations: 7.938 kB / 4.047 GB, free: 4.164 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/10.62, allocations: 96.98 kB / 4.047 GB, free: 4.09 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/10.62, allocations: 112.8 kB / 4.047 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-05/10.62, allocations: 39.22 kB / 4.047 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003128/10.63, allocations: 1.777 MB / 4.048 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.41e-07/10.63, allocations: 3.938 kB / 4.048 GB, free: 2.355 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009802/10.64, allocations: 1.884 MB / 4.05 GB, free: 0.5039 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse46.phase,$cse46.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 80 * 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.4466/11.08, allocations: 4.27 MB / 4.054 GB, free: 92.84 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003024/11.09, allocations: 1.582 MB / 4.056 GB, free: 92.81 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/11.09, allocations: 1.125 kB / 4.056 GB, free: 92.81 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008425/11.09, allocations: 0.6115 MB / 4.057 GB, free: 92.81 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003741/11.09, allocations: 0.5546 MB / 4.057 GB, free: 92.79 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/11.1, allocations: 3.627 MB / 4.061 GB, free: 91.91 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/11.1, allocations: 1.681 MB / 4.062 GB, free: 91.18 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004212/11.11, allocations: 2.222 MB / 4.065 GB, free: 91.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/11.11, allocations: 0.963 MB / 4.065 GB, free: 91.15 MB / 0.5886 GB Notification: Performance of SimCode: time 1.352e-06/11.11, allocations: 1.125 kB / 4.065 GB, free: 91.15 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1491/11.26, allocations: 72.33 MB / 4.136 GB, free: 87.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/11.26, allocations: 185 kB / 4.136 GB, free: 87.61 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.023/16.28, allocations: 0 / 4.136 GB, free: 87.61 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat