Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007299/0.0007299, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009034/0.0009034, allocations: 175.2 kB / 16.58 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3031/0.3031, allocations: 43.55 MB / 314.6 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004756, allocations: 12 kB / 384 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09706, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.203/0.3001, allocations: 26.16 MB / 469 MB, free: 35.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.3109, allocations: 12.4 MB / 481.4 MB, free: 27.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003522/0.3113, allocations: 6.844 kB / 481.4 MB, free: 27.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005477/0.3118, allocations: 202.2 kB / 481.6 MB, free: 27.7 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007449/0.3193, allocations: 2.861 MB / 484.5 MB, free: 26.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00575/0.325, allocations: 1.833 MB / 486.3 MB, free: 25.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009626/0.326, allocations: 0.9847 MB / 487.3 MB, free: 25.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.3263, allocations: 203.6 kB / 487.5 MB, free: 25.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005621/0.3269, allocations: 387.5 kB / 487.9 MB, free: 24.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.3272, allocations: 251.9 kB / 488.1 MB, free: 24.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.3272, allocations: 18.59 kB / 488.2 MB, free: 24.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0117/0.3389, allocations: 6.817 MB / 495 MB, free: 23.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.3391, allocations: 81.97 kB / 495.1 MB, free: 23.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.3393, allocations: 102 kB / 495.1 MB, free: 23.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00627/0.3456, allocations: 2.959 MB / 498.1 MB, free: 22.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3456, allocations: 1.156 kB / 498.1 MB, free: 22.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3456, allocations: 0 / 498.1 MB, free: 22.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.3456, allocations: 0 / 498.1 MB, free: 22.53 MB / 382.1 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.004564/0.3502, allocations: 1.181 MB / 499.3 MB, free: 21.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3503, allocations: 9.625 kB / 499.3 MB, free: 21.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.483e-05/0.3503, allocations: 68.19 kB / 499.4 MB, free: 21.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001582/0.3519, allocations: 217.7 kB / 499.6 MB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.3523, allocations: 356.8 kB / 499.9 MB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.3524, allocations: 34.53 kB / 500 MB, free: 21.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.3524, allocations: 30.91 kB / 500 MB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.3539, allocations: 0.6113 MB / 0.4889 GB, free: 21.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.354, allocations: 5.062 kB / 0.4889 GB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.354, allocations: 14 kB / 0.4889 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.354, allocations: 7.344 kB / 0.4889 GB, free: 21.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.3556, allocations: 0.589 MB / 0.4895 GB, free: 20.96 MB / 382.1 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.002553/0.3582, allocations: 2.646 MB / 0.4921 GB, free: 18.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.3597, allocations: 0.494 MB / 0.4925 GB, free: 18.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.3601, allocations: 219.7 kB / 0.4927 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04152/0.4017, allocations: 24.43 MB / 0.5166 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4017, allocations: 36.66 kB / 0.5166 GB, free: 15.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.844e-06/0.4017, allocations: 0 / 0.5166 GB, free: 15.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002733/0.4045, allocations: 0.8883 MB / 0.5175 GB, free: 15.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.4045, allocations: 106.2 kB / 0.5176 GB, free: 15.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.4049, allocations: 307.8 kB / 0.5179 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.4049, allocations: 33.64 kB / 0.5179 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.405, allocations: 207.1 kB / 0.5181 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/0.4051, allocations: 86.77 kB / 0.5182 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.4051, allocations: 6.312 kB / 0.5182 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.4052, allocations: 337.1 kB / 0.5185 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.4056, allocations: 177.2 kB / 0.5187 GB, free: 14.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004275/0.4061, allocations: 255.2 kB / 0.519 GB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.4065, allocations: 193.1 kB / 0.5191 GB, free: 13.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.4065, allocations: 0 / 0.5191 GB, free: 13.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009311/0.4074, allocations: 478.8 kB / 0.5196 GB, free: 13.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.4075, allocations: 6.469 kB / 0.5196 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4075, allocations: 2.969 kB / 0.5196 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.4075, allocations: 9.531 kB / 0.5196 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.4078, allocations: 93.78 kB / 0.5197 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.4078, allocations: 12.53 kB / 0.5197 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.4082, allocations: 75.11 kB / 0.5198 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.4082, allocations: 16.67 kB / 0.5198 GB, free: 13.62 MB / 398.1 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.0001743/0.4084, allocations: 155.4 kB / 0.5199 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.4085, allocations: 38.31 kB / 0.52 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002316/0.4108, allocations: 1.965 MB / 0.5219 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.4109, allocations: 27.95 kB / 0.5219 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.4109, allocations: 0 / 0.5219 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4109, allocations: 7.922 kB / 0.5219 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.4119, allocations: 1.021 MB / 0.5229 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4119, allocations: 4 kB / 0.5229 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.4122, allocations: 79.94 kB / 0.523 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.4122, allocations: 0 / 0.523 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.4123, allocations: 15.92 kB / 0.523 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4123, allocations: 4 kB / 0.523 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4123, allocations: 0 / 0.523 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.4137, allocations: 1.137 MB / 0.5241 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.4139, allocations: 223.4 kB / 0.5244 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.935e-05/0.414, allocations: 4 kB / 0.5244 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.4143, allocations: 59.89 kB / 0.5244 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.4144, allocations: 27.95 kB / 0.5244 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.4144, allocations: 11.98 kB / 0.5245 GB, free: 9.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003337/0.4148, allocations: 323.1 kB / 0.5248 GB, free: 9.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4148, allocations: 0 / 0.5248 GB, free: 9.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004105/0.4189, allocations: 0.9994 MB / 0.5257 GB, free: 8.141 MB / 398.1 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.008019/0.4269, allocations: 2.745 MB / 0.5284 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.4281, allocations: 0.6467 MB / 0.5291 GB, free: 4.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4282, allocations: 3.938 kB / 0.5291 GB, free: 4.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006621/0.4288, allocations: 0.5376 MB / 0.5296 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.4299, allocations: 212.7 kB / 0.5298 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006757/0.4367, allocations: 3.7 MB / 0.5334 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.4372, allocations: 0.9641 MB / 0.5343 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004488/0.4376, allocations: 270.8 kB / 0.5346 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.4379, allocations: 251.3 kB / 0.5348 GB, free: 14.7 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4379, allocations: 4 kB / 0.5348 GB, free: 14.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06908/0.507, allocations: 46.28 MB / 0.58 GB, free: 428 kB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.5072, allocations: 246.3 kB / 0.5803 GB, free: 168 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.776/4.284, allocations: 8 kB / 0.5803 GB, free: 160 kB / 446.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat