Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientValve.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/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",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.0009429/0.000943, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007288/0.007288, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.189/1.189, allocations: 205.4 MB / 222.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007581/0.007581, allocations: 1.924 MB / 272.7 MB, free: 3.52 MB / 222.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.0005568/0.0005568, allocations: 16.2 kB / 331.6 MB, free: 32.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08873, allocations: 48.1 MB / 379.7 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.002345/0.09111, allocations: 1.928 MB / 381.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.09235, allocations: 0.5973 MB / 382.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.09249, allocations: 4 kB / 382.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.855e-05/0.09254, allocations: 15.84 kB / 382.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.0927, allocations: 31.7 kB / 382.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.09292, allocations: 35.97 kB / 382.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.09309, allocations: 127.3 kB / 382.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.09322, allocations: 32.89 kB / 382.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.897e-05/0.09329, allocations: 47.72 kB / 382.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.0934, allocations: 47.78 kB / 382.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.09343, allocations: 4 kB / 382.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.09349, allocations: 8 kB / 382.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.42e-05/0.09352, allocations: 23.86 kB / 382.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.362e-05/0.0936, allocations: 81.44 kB / 382.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.09376, allocations: 103.5 kB / 382.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.09378, allocations: 4 kB / 382.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09378, allocations: 0 / 382.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.09379, allocations: 0 / 382.8 MB, free: 13.66 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005301/0.09433, allocations: 399 kB / 383.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.09438, allocations: 8.031 kB / 383.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.613e-05/0.09444, allocations: 50.67 kB / 383.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.235e-05/0.09448, allocations: 12.84 kB / 383.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.09472, allocations: 202.5 kB / 383.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.09474, allocations: 12.36 kB / 383.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.09476, allocations: 4.375 kB / 383.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.09497, allocations: 97.69 kB / 383.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.09499, allocations: 0 / 383.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.09501, allocations: 4 kB / 383.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.09502, allocations: 3.938 kB / 383.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.09521, allocations: 70.77 kB / 383.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.0958, allocations: 384.4 kB / 384 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.09627, allocations: 70.53 kB / 384.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.348e-05/0.09635, allocations: 24.94 kB / 384.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.09637, allocations: 0 / 384.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.0964, allocations: 30.56 kB / 384.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.09641, allocations: 0 / 384.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002841/0.0967, allocations: 109.5 kB / 384.2 MB, free: 12.04 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.09674, allocations: 51.41 kB / 384.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.09691, allocations: 178.7 kB / 384.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.09693, allocations: 25.7 kB / 384.5 MB, free: 11.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.031e-05/0.09702, allocations: 112 kB / 384.6 MB, free: 11.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.09704, allocations: 19.73 kB / 384.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.09707, allocations: 9.719 kB / 384.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.0972, allocations: 322.8 kB / 384.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.09726, allocations: 27.92 kB / 385 MB, free: 11.26 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.283e-05/0.09732, allocations: 20 kB / 385 MB, free: 11.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.09745, allocations: 48.84 kB / 385 MB, free: 11.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09746, allocations: 0 / 385 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001809/0.09764, allocations: 97.52 kB / 385.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.09771, allocations: 96.94 kB / 385.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.09772, allocations: 0 / 385.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.09773, allocations: 0 / 385.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.876e-05/0.09781, allocations: 15.98 kB / 385.2 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.09783, allocations: 0 / 385.2 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.692e-05/0.0979, allocations: 7.906 kB / 385.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.09792, allocations: 4 kB / 385.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-06/0.09793, allocations: 4 kB / 385.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001209/0.09805, allocations: 56.09 kB / 385.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-06/0.09806, allocations: 0 / 385.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-06/0.09807, allocations: 4 kB / 385.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.702e-05/0.09813, allocations: 12 kB / 385.3 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.366e-06/0.09814, allocations: 3.938 kB / 385.3 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.384e-05/0.09821, allocations: 15.92 kB / 385.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.09822, allocations: 4 kB / 385.3 MB, free: 10.86 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.217e-05/0.09832, allocations: 189.1 kB / 385.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.09836, allocations: 11.81 kB / 385.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.09857, allocations: 90.53 kB / 385.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.09859, allocations: 3.938 kB / 385.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.0986, allocations: 0 / 385.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.09861, allocations: 4 kB / 385.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.09902, allocations: 347.4 kB / 386 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.09904, allocations: 4.219 kB / 386 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.933e-05/0.0991, allocations: 11.94 kB / 386 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.0991, allocations: 0 / 386 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.09913, allocations: 4 kB / 386 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.09914, allocations: 32 / 386 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.09915, allocations: 4 kB / 386 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001974/0.09936, allocations: 184.2 kB / 386.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.056e-05/0.09944, allocations: 96.94 kB / 386.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.09947, allocations: 0 / 386.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.09956, allocations: 15.92 kB / 386.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.0996, allocations: 3.938 kB / 386.3 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.09962, allocations: 7.938 kB / 386.3 MB, free: 9.785 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.09974, allocations: 144 kB / 386.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09975, allocations: 0 / 386.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.1001, allocations: 39.84 kB / 386.5 MB, free: 9.605 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005059/0.1006, allocations: 0.7093 MB / 387.2 MB, free: 8.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.1008, allocations: 71.91 kB / 387.3 MB, free: 8.797 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1008, allocations: 4 kB / 387.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.621e-05/0.1009, allocations: 23.92 kB / 387.3 MB, free: 8.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1012, allocations: 12 kB / 387.3 MB, free: 8.758 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.103, allocations: 1.724 MB / 389 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.1033, allocations: 0.7042 MB / 389.7 MB, free: 6.223 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.1034, allocations: 12.42 kB / 389.7 MB, free: 6.211 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.601e-05/0.1035, allocations: 35.42 kB / 389.8 MB, free: 6.176 MB / 286.1 MB Notification: Performance of SimCode: time 2.484e-06/0.1035, allocations: 0 / 389.8 MB, free: 6.176 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4289/0.5323, allocations: 2.193 MB / 392 MB, free: 3.98 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003481/0.5328, allocations: 148.6 kB / 392.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.657, allocations: 0 / 392.1 MB, free: 3.73 MB / 286.1 MB (rm -f MEV_MEV.Test.TestPatientValve.pipe ; mkfifo MEV_MEV.Test.TestPatientValve.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientValve.pipe >> ../files/MEV_MEV.Test.TestPatientValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)