Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",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.001442/0.001442, allocations: 178.4 kB / 8.362 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.16/2.16, allocations: 205.3 MB / 214.1 MB, free: 14.14 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: 93.36 kB / 262.1 MB, free: 13.88 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.2991/0.2991, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.249e-05/2.246e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4091, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.146/8.556, allocations: 2.77 GB / 3.236 GB, free: 15.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/8.556, allocations: 79.08 kB / 3.236 GB, free: 15.26 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.632/10.19, allocations: 231.1 MB / 3.462 GB, free: 73.74 MB / 0.4952 GB Notification: Performance of FrontEnd: time 3.928e-06/10.19, allocations: 0 / 3.462 GB, free: 73.74 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 4.858e-05/10.19, allocations: 14.91 kB / 3.462 GB, free: 73.74 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.007231/10.19, allocations: 1.273 MB / 3.463 GB, free: 73.19 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/10.2, allocations: 9.625 kB / 3.463 GB, free: 73.19 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/10.2, allocations: 249.1 kB / 3.463 GB, free: 73.17 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/10.2, allocations: 411.4 kB / 3.464 GB, free: 72.95 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.592e-05/10.2, allocations: 17.38 kB / 3.464 GB, free: 72.95 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/10.2, allocations: 18.16 kB / 3.464 GB, free: 72.95 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001031/10.2, allocations: 335.2 kB / 3.464 GB, free: 72.95 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009942/10.2, allocations: 403.8 kB / 3.465 GB, free: 72.83 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/10.2, allocations: 1.719 kB / 3.465 GB, free: 72.83 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.662e-05/10.2, allocations: 5.734 kB / 3.465 GB, free: 72.82 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/10.2, allocations: 9.375 kB / 3.465 GB, free: 72.82 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.03205/10.23, allocations: 10.14 MB / 3.475 GB, free: 66.54 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006886/10.23, allocations: 241.9 kB / 3.475 GB, free: 66.52 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/10.24, allocations: 127.3 kB / 3.475 GB, free: 66.51 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07931/10.31, allocations: 24.15 MB / 3.498 GB, free: 51.86 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/10.31, allocations: 39.47 kB / 3.499 GB, free: 51.82 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=24): time 2.746e-06/10.31, allocations: 0 / 3.499 GB, free: 51.82 MB / 0.4952 GB Notification: Performance of matching and sorting (n=24): time 0.002973/10.32, allocations: 0.5606 MB / 3.499 GB, free: 51.77 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/10.32, allocations: 105.9 kB / 3.499 GB, free: 51.64 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/10.32, allocations: 273.3 kB / 3.499 GB, free: 51.53 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/10.32, allocations: 28.8 kB / 3.499 GB, free: 51.5 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/10.32, allocations: 279 kB / 3.5 GB, free: 51.31 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 8.36e-05/10.32, allocations: 86.48 kB / 3.5 GB, free: 51.27 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/10.32, allocations: 3.312 kB / 3.5 GB, free: 51.27 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.318e-05/10.32, allocations: 328.4 kB / 3.5 GB, free: 50.95 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/10.32, allocations: 98.86 kB / 3.5 GB, free: 50.95 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/10.32, allocations: 197.8 kB / 3.5 GB, free: 50.84 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/10.32, allocations: 216.5 kB / 3.501 GB, free: 50.84 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/10.32, allocations: 0 / 3.501 GB, free: 50.84 MB / 0.4952 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001819/10.32, allocations: 425.5 kB / 3.501 GB, free: 50.8 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002567/10.32, allocations: 1.053 MB / 3.502 GB, free: 49.71 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/10.32, allocations: 3.344 kB / 3.502 GB, free: 49.71 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.628e-05/10.32, allocations: 3.656 kB / 3.502 GB, free: 49.71 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008098/10.32, allocations: 106.6 kB / 3.502 GB, free: 49.71 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/10.32, allocations: 3.906 kB / 3.502 GB, free: 49.71 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008305/10.32, allocations: 66.72 kB / 3.502 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.537e-05/10.32, allocations: 19.28 kB / 3.502 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/10.32, allocations: 3.75 kB / 3.502 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001532/10.33, allocations: 344.4 kB / 3.503 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/10.33, allocations: 7.109 kB / 3.503 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/10.33, allocations: 4.969 kB / 3.503 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/10.33, allocations: 108.6 kB / 3.503 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/10.33, allocations: 6.281 kB / 3.503 GB, free: 49.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/10.33, allocations: 59.73 kB / 3.503 GB, free: 49.69 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/10.33, allocations: 20.89 kB / 3.503 GB, free: 49.69 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0001703/10.33, allocations: 111.3 kB / 3.503 GB, free: 49.58 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001644/10.33, allocations: 346.1 kB / 3.503 GB, free: 49.53 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/10.33, allocations: 45.53 kB / 3.503 GB, free: 49.51 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003124/10.33, allocations: 1.706 MB / 3.505 GB, free: 49.33 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.644e-05/10.33, allocations: 26.67 kB / 3.505 GB, free: 49.33 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/10.33, allocations: 7.625 kB / 3.505 GB, free: 49.33 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/10.33, allocations: 3.281 kB / 3.505 GB, free: 49.33 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/10.33, allocations: 0.8795 MB / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/10.33, allocations: 0 / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006538/10.33, allocations: 87.95 kB / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/10.33, allocations: 4.656 kB / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/10.33, allocations: 7.078 kB / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/10.33, allocations: 0 / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/10.33, allocations: 0 / 3.506 GB, free: 49.13 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/10.34, allocations: 0.9703 MB / 3.507 GB, free: 48.92 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/10.34, allocations: 259.7 kB / 3.507 GB, free: 48.76 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.987e-05/10.34, allocations: 3.812 kB / 3.507 GB, free: 48.76 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006075/10.34, allocations: 43.39 kB / 3.507 GB, free: 48.75 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/10.34, allocations: 31.38 kB / 3.507 GB, free: 48.75 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.932e-05/10.34, allocations: 18.98 kB / 3.507 GB, free: 48.75 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0004545/10.34, allocations: 312 kB / 3.507 GB, free: 48.66 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.71e-07/10.34, allocations: 0 / 3.507 GB, free: 48.66 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.006397/10.34, allocations: 1.169 MB / 3.509 GB, free: 48.47 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,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 28 * 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.01312/10.36, allocations: 2.951 MB / 3.511 GB, free: 47.54 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001439/10.36, allocations: 0.64 MB / 3.512 GB, free: 47.53 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/10.36, allocations: 3.906 kB / 3.512 GB, free: 47.53 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0006131/10.36, allocations: 439.2 kB / 3.513 GB, free: 47.53 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/10.36, allocations: 179.8 kB / 3.513 GB, free: 47.52 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006846/10.37, allocations: 1.6 MB / 3.514 GB, free: 47.02 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/10.37, allocations: 0.9847 MB / 3.515 GB, free: 46.32 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004887/10.37, allocations: 256.6 kB / 3.515 GB, free: 46.31 MB / 0.4952 GB Notification: Performance of SimCode: time 1.202e-06/10.37, allocations: 0 / 3.515 GB, free: 46.31 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.524/13.89, allocations: 31.06 MB / 3.546 GB, free: 43.43 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat