Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.000932/0.0009319, allocations: 197.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008937/0.0008937, allocations: 106.2 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.281/0.281, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002563, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2761, allocations: 62.95 MB / 0.516 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.01914/0.2953, allocations: 26.31 MB / 0.5416 GB, free: 18.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3062, allocations: 12.4 MB / 0.5538 GB, free: 9.711 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003615/0.3066, allocations: 9.562 kB / 0.5538 GB, free: 9.707 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006221/0.3073, allocations: 202.1 kB / 0.554 GB, free: 9.598 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00778/0.3151, allocations: 2.864 MB / 0.5568 GB, free: 8.355 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00554/0.3206, allocations: 1.848 MB / 0.5586 GB, free: 7.402 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.322, allocations: 0.9949 MB / 0.5595 GB, free: 6.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.3225, allocations: 215.9 kB / 0.5597 GB, free: 6.898 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007912/0.3233, allocations: 395.3 kB / 0.5601 GB, free: 6.738 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.3237, allocations: 259.5 kB / 0.5604 GB, free: 6.637 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.3237, allocations: 14.59 kB / 0.5604 GB, free: 6.637 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01312/0.3369, allocations: 6.884 MB / 0.5671 GB, free: 3.363 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.337, allocations: 87.98 kB / 0.5672 GB, free: 3.297 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.3374, allocations: 224 kB / 0.5674 GB, free: 3.156 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005597/0.343, allocations: 2.979 MB / 0.5703 GB, free: 1.418 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.343, allocations: 1.156 kB / 0.5703 GB, free: 1.418 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.343, allocations: 3.984 kB / 0.5703 GB, free: 1.414 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.343, allocations: 0 / 0.5703 GB, free: 1.414 MB / 378.7 MB 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.003608/0.3467, allocations: 1.179 MB / 0.5715 GB, free: 492 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.3467, allocations: 12.03 kB / 0.5715 GB, free: 480 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.3468, allocations: 66.72 kB / 0.5715 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.3483, allocations: 228.2 kB / 0.5718 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.3487, allocations: 367.3 kB / 0.5721 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.3488, allocations: 21.03 kB / 0.5721 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/0.3488, allocations: 36.12 kB / 0.5722 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.3503, allocations: 0.6134 MB / 0.5728 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3503, allocations: 7.984 kB / 0.5728 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.3504, allocations: 12 kB / 0.5728 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3504, allocations: 8 kB / 0.5728 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.352, allocations: 0.5836 MB / 0.5734 GB, free: 14.45 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002834/0.3548, allocations: 2.644 MB / 0.5759 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.3563, allocations: 0.4934 MB / 0.5764 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.3568, allocations: 220.7 kB / 0.5766 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0471/0.4039, allocations: 26.98 MB / 0.603 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.404, allocations: 38.56 kB / 0.603 GB, free: 12.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 1.723e-06/0.404, allocations: 0 / 0.603 GB, free: 12.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002749/0.4068, allocations: 0.8955 MB / 0.6039 GB, free: 11.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.4068, allocations: 102.8 kB / 0.604 GB, free: 11.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.4071, allocations: 312.4 kB / 0.6043 GB, free: 11.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.4072, allocations: 33.7 kB / 0.6043 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.4073, allocations: 204.2 kB / 0.6045 GB, free: 10.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.4074, allocations: 82.73 kB / 0.6046 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.4074, allocations: 8 kB / 0.6046 GB, free: 10.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.4075, allocations: 350.8 kB / 0.6049 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.408, allocations: 163.9 kB / 0.6051 GB, free: 10.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.4084, allocations: 258.9 kB / 0.6053 GB, free: 9.938 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008432/0.4093, allocations: 415.2 kB / 0.6057 GB, free: 9.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4093, allocations: 8 kB / 0.6057 GB, free: 9.492 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001021/0.4103, allocations: 484.7 kB / 0.6062 GB, free: 9.012 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.4103, allocations: 11.94 kB / 0.6062 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4104, allocations: 0 / 0.6062 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.4104, allocations: 7.938 kB / 0.6062 GB, free: 8.992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.4107, allocations: 100.2 kB / 0.6063 GB, free: 8.895 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.4108, allocations: 4 kB / 0.6063 GB, free: 8.891 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.4111, allocations: 67.7 kB / 0.6064 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.4112, allocations: 12 kB / 0.6064 GB, free: 8.812 MB / 426.7 MB 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 () * Number of clocked 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.0001688/0.4113, allocations: 165.6 kB / 0.6066 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.4114, allocations: 39.53 kB / 0.6066 GB, free: 8.602 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.4137, allocations: 1.972 MB / 0.6085 GB, free: 6.625 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.4138, allocations: 31.94 kB / 0.6085 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4138, allocations: 3.984 kB / 0.6086 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4138, allocations: 0 / 0.6086 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009213/0.4147, allocations: 1.015 MB / 0.6095 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4147, allocations: 0 / 0.6095 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.4151, allocations: 95.86 kB / 0.6096 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4151, allocations: 0 / 0.6096 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.4151, allocations: 11.94 kB / 0.6096 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.4151, allocations: 0 / 0.6096 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4151, allocations: 3.984 kB / 0.6097 GB, free: 5.414 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.4165, allocations: 1.131 MB / 0.6108 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.4167, allocations: 215.6 kB / 0.611 GB, free: 4.031 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.4168, allocations: 11.94 kB / 0.611 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.4171, allocations: 55.8 kB / 0.611 GB, free: 3.965 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.4172, allocations: 35.89 kB / 0.6111 GB, free: 3.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.4172, allocations: 15.98 kB / 0.6111 GB, free: 3.914 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003152/0.4175, allocations: 323.1 kB / 0.6114 GB, free: 3.598 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4175, allocations: 0 / 0.6114 GB, free: 3.598 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003184/0.4207, allocations: 0.9955 MB / 0.6124 GB, free: 2.602 MB / 426.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.006394/0.4271, allocations: 2.755 MB / 0.615 GB, free: 15.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.4284, allocations: 0.647 MB / 0.6157 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4284, allocations: 4.062 kB / 0.6157 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006726/0.4291, allocations: 0.5439 MB / 0.6162 GB, free: 14.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.4302, allocations: 201.5 kB / 0.6164 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005987/0.4362, allocations: 3.735 MB / 0.6201 GB, free: 10.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.4367, allocations: 0.9602 MB / 0.621 GB, free: 9.621 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.437, allocations: 259.3 kB / 0.6212 GB, free: 9.371 MB / 442.7 MB Notification: Performance of SimCode: time 4e-07/0.437, allocations: 0 / 0.6212 GB, free: 9.371 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.913/5.35, allocations: 25.13 MB / 0.6458 GB, free: 204 kB / 458.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches