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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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) 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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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(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/Complex 3.2.3+maint.om/package.mo): time 0.006656/0.006656, allocations: 170.8 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.009299/0.009299, allocations: 1.933 MB / 17.79 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 224.4 MB, free: 11.91 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.0008481/0.000848, allocations: 102.1 kB / 273.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003405, allocations: 8.219 kB / 331.9 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 48.08 MB / 380 MB, free: 10.63 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.4118, allocations: 76.3 MB / 456.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4121, allocations: 71.97 kB / 456.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00695/0.419, allocations: 2.406 MB / 458.8 MB, free: 8.719 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4191, allocations: 0 / 458.8 MB, free: 8.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.4191, allocations: 8 kB / 458.8 MB, free: 8.711 MB / 330.7 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.0006169/0.4197, allocations: 404 kB / 459.2 MB, free: 8.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.4198, allocations: 8.031 kB / 459.2 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.103e-05/0.4199, allocations: 42.56 kB / 459.2 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.4199, allocations: 11.81 kB / 459.3 MB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.4202, allocations: 203.3 kB / 459.5 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.4202, allocations: 8 kB / 459.5 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.4203, allocations: 7.953 kB / 459.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.4205, allocations: 85.66 kB / 459.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4205, allocations: 0 / 459.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.4206, allocations: 8 kB / 459.6 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.4206, allocations: 0 / 459.6 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.4207, allocations: 59.97 kB / 459.6 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007721/0.4215, allocations: 394.3 kB / 460 MB, free: 7.352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/0.422, allocations: 69.19 kB / 460.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.422, allocations: 96 / 460.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.422, allocations: 34.55 kB / 460.1 MB, free: 7.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.123e-06/0.422, allocations: 4 kB / 460.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003088/0.4224, allocations: 93.52 kB / 460.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.4224, allocations: 51.41 kB / 460.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.4226, allocations: 158.8 kB / 460.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.4226, allocations: 29.7 kB / 460.4 MB, free: 6.871 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.4227, allocations: 112.7 kB / 460.5 MB, free: 6.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.4228, allocations: 11.75 kB / 460.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.4228, allocations: 0 / 460.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4229, allocations: 322.8 kB / 460.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-05/0.423, allocations: 27.92 kB / 460.9 MB, free: 6.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.015e-05/0.4231, allocations: 23.98 kB / 460.9 MB, free: 6.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.645e-05/0.4231, allocations: 20 kB / 460.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4232, allocations: 7.875 kB / 461 MB, free: 6.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001888/0.4233, allocations: 81.58 kB / 461 MB, free: 6.258 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.703e-05/0.4234, allocations: 96.12 kB / 461.1 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.4235, allocations: 7.953 kB / 461.1 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.4235, allocations: 0 / 461.1 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.4236, allocations: 16.86 kB / 461.1 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.4236, allocations: 0 / 461.1 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.026e-05/0.4237, allocations: 8 kB / 461.2 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.4237, allocations: 0 / 461.2 MB, free: 6.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.4237, allocations: 4 kB / 461.2 MB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001462/0.4239, allocations: 52.11 kB / 461.2 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-06/0.4239, allocations: 64 / 461.2 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.909e-06/0.4239, allocations: 4 kB / 461.2 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.4239, allocations: 15.98 kB / 461.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-06/0.424, allocations: 0 / 461.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/0.424, allocations: 11.84 kB / 461.2 MB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-06/0.424, allocations: 0 / 461.2 MB, free: 6.043 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.4242, allocations: 197.1 kB / 461.4 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.4242, allocations: 19.89 kB / 461.5 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/0.4244, allocations: 83.7 kB / 461.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4245, allocations: 0 / 461.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4245, allocations: 0 / 461.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4245, allocations: 0 / 461.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005052/0.425, allocations: 359.3 kB / 461.9 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.425, allocations: 0 / 461.9 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-05/0.4251, allocations: 11.98 kB / 461.9 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4251, allocations: 4 kB / 461.9 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.4251, allocations: 0 / 461.9 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4251, allocations: 0 / 461.9 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4251, allocations: 0 / 461.9 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.4253, allocations: 197.9 kB / 462.1 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.4254, allocations: 96.91 kB / 462.2 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.4255, allocations: 0 / 462.2 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-05/0.4256, allocations: 4 kB / 462.2 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.4256, allocations: 11.94 kB / 462.2 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.4256, allocations: 4 kB / 462.2 MB, free: 4.949 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.4258, allocations: 139.2 kB / 462.3 MB, free: 4.812 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4258, allocations: 0 / 462.3 MB, free: 4.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003272/0.4261, allocations: 39.94 kB / 462.4 MB, free: 4.773 MB / 330.7 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 (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.0006644/0.4268, allocations: 0.8031 MB / 463.2 MB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.427, allocations: 67.97 kB / 463.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.427, allocations: 0 / 463.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.916e-05/0.4271, allocations: 20.3 kB / 463.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.4274, allocations: 20.02 kB / 463.3 MB, free: 3.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.4288, allocations: 0.7357 MB / 464 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.4292, allocations: 0.712 MB / 464.7 MB, free: 2.305 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.742e-05/0.4293, allocations: 16.5 kB / 464.8 MB, free: 2.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.4293, allocations: 31.42 kB / 464.8 MB, free: 2.258 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4294, allocations: 0 / 464.8 MB, free: 2.258 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01555/0.4449, allocations: 2.137 MB / 466.9 MB, free: 140 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003364/0.4453, allocations: 147 kB / 467.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/2.056, allocations: 0 / 467.1 MB, free: 15.9 MB / 346.7 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/linux/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)