Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.002681/0.002681, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3131/0.3131, allocations: 43.57 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004809/0.0004811, allocations: 8 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1271, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.5065/0.6337, allocations: 68.62 MB / 0.5458 GB, free: 11.48 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06533/0.6991, allocations: 24.63 MB / 0.5699 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003619/0.7028, allocations: 47.47 kB / 0.5699 GB, free: 10.2 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006809/0.7097, allocations: 0.9835 MB / 0.5709 GB, free: 9.379 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02721/0.7369, allocations: 4.097 MB / 0.5749 GB, free: 6.117 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04068/0.7777, allocations: 6.198 MB / 0.581 GB, free: 1.574 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008438/0.7861, allocations: 2.199 MB / 0.5831 GB, free: 15.72 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003176/0.7894, allocations: 0.8109 MB / 0.5839 GB, free: 14.89 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006274/0.7957, allocations: 1.203 MB / 0.5851 GB, free: 13.68 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003165/0.799, allocations: 0.7781 MB / 0.5858 GB, free: 12.9 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006692/0.7997, allocations: 60 kB / 0.5859 GB, free: 12.84 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03868/0.8384, allocations: 8.292 MB / 0.594 GB, free: 4.543 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.8398, allocations: 314.8 kB / 0.5943 GB, free: 4.234 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001319/0.8412, allocations: 333 kB / 0.5946 GB, free: 3.902 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02047/0.8617, allocations: 4.658 MB / 0.5991 GB, free: 15.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.8618, allocations: 0 / 0.5991 GB, free: 15.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.803e-06/0.8618, allocations: 0 / 0.5991 GB, free: 15.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.981e-05/0.8619, allocations: 3.938 kB / 0.5992 GB, free: 15.23 MB / 410.7 MB 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.01397/0.8759, allocations: 2.436 MB / 0.6015 GB, free: 12.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.154e-05/0.876, allocations: 8.031 kB / 0.6015 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008308/0.8768, allocations: 181.5 kB / 0.6017 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01757/0.8944, allocations: 0.8878 MB / 0.6026 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/0.8983, allocations: 0.8963 MB / 0.6035 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003781/0.8987, allocations: 102.4 kB / 0.6035 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006145/0.8994, allocations: 112 kB / 0.6037 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/0.9142, allocations: 2.283 MB / 0.6059 GB, free: 8.059 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.681e-05/0.9143, allocations: 3.938 kB / 0.6059 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004104/0.9148, allocations: 60 kB / 0.6059 GB, free: 7.996 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/0.9149, allocations: 28 kB / 0.606 GB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01655/0.9314, allocations: 2.178 MB / 0.6081 GB, free: 5.781 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03296/0.9645, allocations: 10.38 MB / 0.6182 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01381/0.9783, allocations: 1.662 MB / 0.6199 GB, free: 8.898 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1216/1.1, allocations: 24.28 MB / 0.6436 GB, free: 13.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.027e-05/1.1, allocations: 47.22 kB / 0.6436 GB, free: 13.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 5.12e-06/1.1, allocations: 3.938 kB / 0.6436 GB, free: 13.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.02336/1.124, allocations: 2.744 MB / 0.6463 GB, free: 10.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002471/1.124, allocations: 269.6 kB / 0.6466 GB, free: 10.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/1.128, allocations: 1.169 MB / 0.6477 GB, free: 9.434 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003142/1.128, allocations: 41.7 kB / 0.6477 GB, free: 9.387 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008693/1.129, allocations: 0.5909 MB / 0.6483 GB, free: 8.789 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005923/1.13, allocations: 276.1 kB / 0.6486 GB, free: 8.516 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/1.13, allocations: 24 kB / 0.6486 GB, free: 8.492 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002603/1.13, allocations: 346.8 kB / 0.6489 GB, free: 8.145 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003525/1.134, allocations: 498.3 kB / 0.6494 GB, free: 7.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/1.138, allocations: 0.9277 MB / 0.6503 GB, free: 6.531 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003737/1.142, allocations: 0.5666 MB / 0.6509 GB, free: 5.965 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.47e-05/1.142, allocations: 4 kB / 0.6509 GB, free: 5.961 MB / 458.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.009581/1.151, allocations: 1.465 MB / 0.6523 GB, free: 4.488 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003368/1.155, allocations: 4.871 MB / 0.6571 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.067e-05/1.155, allocations: 12 kB / 0.6571 GB, free: 15.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.415e-05/1.155, allocations: 27.88 kB / 0.6571 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003828/1.159, allocations: 363.5 kB / 0.6574 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.719e-05/1.159, allocations: 27.92 kB / 0.6575 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004077/1.163, allocations: 266.2 kB / 0.6577 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005196/1.164, allocations: 71.97 kB / 0.6578 GB, free: 14.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/1.164, allocations: 0 / 0.6578 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007149/1.171, allocations: 1.374 MB / 0.6591 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/1.171, allocations: 15.95 kB / 0.6591 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.682e-05/1.171, allocations: 20 kB / 0.6592 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/1.174, allocations: 355.8 kB / 0.6595 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-05/1.174, allocations: 27.92 kB / 0.6595 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/1.176, allocations: 199 kB / 0.6597 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/1.176, allocations: 71.98 kB / 0.6598 GB, free: 12.43 MB / 474.7 MB 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 () * Number of clocked 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.00103/1.177, allocations: 392.6 kB / 0.6602 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/1.177, allocations: 142.3 kB / 0.6603 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/1.192, allocations: 6.65 MB / 0.6668 GB, free: 5.207 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001257/1.192, allocations: 83.86 kB / 0.6669 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/1.192, allocations: 0 / 0.6669 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.124e-05/1.192, allocations: 7.984 kB / 0.6669 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006248/1.198, allocations: 3.259 MB / 0.6701 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/1.198, allocations: 0 / 0.6701 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/1.2, allocations: 275.7 kB / 0.6703 GB, free: 1.531 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.511e-05/1.2, allocations: 4 kB / 0.6703 GB, free: 1.527 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/1.2, allocations: 24 kB / 0.6704 GB, free: 1.504 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-05/1.2, allocations: 19.83 kB / 0.6704 GB, free: 1.484 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.2, allocations: 0 / 0.6704 GB, free: 1.484 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007416/1.208, allocations: 2.974 MB / 0.6733 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/1.21, allocations: 0.8927 MB / 0.6742 GB, free: 13.57 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/1.211, allocations: 24 kB / 0.6742 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.213, allocations: 131.7 kB / 0.6743 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/1.213, allocations: 104.8 kB / 0.6744 GB, free: 13.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/1.213, allocations: 43.97 kB / 0.6744 GB, free: 13.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003983/1.217, allocations: 1.617 MB / 0.676 GB, free: 11.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.493e-06/1.217, allocations: 0 / 0.676 GB, free: 11.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00835/1.226, allocations: 1.753 MB / 0.6777 GB, free: 9.891 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse25.phase,$cse25.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse36.phase,$cse36.region,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse43.phase,$cse43.region,$cse47.phase,$cse47.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse54.phase,$cse54.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.01704/1.243, allocations: 4.815 MB / 0.6824 GB, free: 5.043 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009478/1.252, allocations: 2.597 MB / 0.685 GB, free: 2.445 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.252, allocations: 0 / 0.685 GB, free: 2.445 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003666/1.256, allocations: 1.465 MB / 0.6864 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007754/1.264, allocations: 0.8062 MB / 0.6872 GB, free: 184 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.286, allocations: 16.57 MB / 0.7034 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/1.288, allocations: 1.854 MB / 0.7052 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0022/1.291, allocations: 1.105 MB / 0.7063 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.593e-06/1.291, allocations: 8 kB / 0.7063 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.828/6.119, allocations: 56.98 MB / 0.7619 GB, free: 162.4 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat