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.001686/0.001686, allocations: 108 kB / 15.6 MB, free: 132 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.002013/0.002013, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.53/1.53, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01146/0.01146, allocations: 1.93 MB / 271.7 MB, free: 3.348 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.002566/0.002566, allocations: 63.91 kB / 329.9 MB, free: 32.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1204, allocations: 47.13 MB / 377.1 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.005266/0.1257, allocations: 1.961 MB / 379 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.1273, allocations: 0.5738 MB / 379.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1275, allocations: 4 kB / 379.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.1276, allocations: 15.84 kB / 379.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.1279, allocations: 43.56 kB / 379.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.1282, allocations: 47.89 kB / 379.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002646/0.1285, allocations: 139.3 kB / 379.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.1287, allocations: 24.91 kB / 379.9 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.1288, allocations: 47.8 kB / 379.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.129, allocations: 59.75 kB / 380 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.129, allocations: 12 kB / 380 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.1291, allocations: 16 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.057e-05/0.1292, allocations: 15.92 kB / 380 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.1293, allocations: 63.61 kB / 380.1 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.1295, allocations: 103.6 kB / 380.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1295, allocations: 7.938 kB / 380.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1296, allocations: 0 / 380.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.1296, allocations: 0 / 380.2 MB, free: 14.38 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.000792/0.1304, allocations: 426.9 kB / 380.6 MB, free: 13.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.1304, allocations: 11.89 kB / 380.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.286e-05/0.1305, allocations: 38.75 kB / 380.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.1306, allocations: 8.844 kB / 380.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.1309, allocations: 214.2 kB / 380.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1309, allocations: 8.375 kB / 380.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.1309, allocations: 4.375 kB / 380.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002344/0.1312, allocations: 93.72 kB / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1312, allocations: 0 / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1312, allocations: 4 kB / 381 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1312, allocations: 4 kB / 381 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.1314, allocations: 51.97 kB / 381 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.1322, allocations: 392.3 kB / 381.4 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.1328, allocations: 74.53 kB / 381.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.968e-05/0.1329, allocations: 20.94 kB / 381.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1329, allocations: 0 / 381.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.1329, allocations: 34.5 kB / 381.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.1329, allocations: 0 / 381.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003573/0.1333, allocations: 93.77 kB / 381.6 MB, free: 12.76 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.1334, allocations: 55.41 kB / 381.7 MB, free: 12.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.1336, allocations: 178.7 kB / 381.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1336, allocations: 25.7 kB / 381.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.1337, allocations: 108 kB / 382 MB, free: 12.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.1338, allocations: 15.75 kB / 382 MB, free: 12.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.553e-05/0.1338, allocations: 21.7 kB / 382 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.134, allocations: 322.8 kB / 382.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.609e-05/0.1341, allocations: 28.86 kB / 382.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.445e-05/0.1342, allocations: 15.98 kB / 382.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.1344, allocations: 56.91 kB / 382.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1344, allocations: 0 / 382.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002375/0.1346, allocations: 85.58 kB / 382.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.1347, allocations: 7.938 kB / 382.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.1347, allocations: 3.984 kB / 382.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1347, allocations: 0 / 382.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1348, allocations: 19.98 kB / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.1349, allocations: 0 / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.986e-05/0.135, allocations: 7.906 kB / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.135, allocations: 3.938 kB / 382.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001382/0.1351, allocations: 112.1 kB / 382.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.211e-05/0.1352, allocations: 23.91 kB / 382.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001272/0.1353, allocations: 40.84 kB / 382.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.82e-07/0.1354, allocations: 0 / 382.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0002139/0.1356, allocations: 81.59 kB / 382.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.1356, allocations: 6.969 kB / 382.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.1356, allocations: 0 / 382.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.27e-06/0.1356, allocations: 3.938 kB / 382.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.239e-05/0.1357, allocations: 11.98 kB / 382.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.1358, allocations: 7.938 kB / 382.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.008e-05/0.1359, allocations: 3.938 kB / 382.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.1359, allocations: 256 / 382.9 MB, free: 11.46 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 0.0001128/0.136, allocations: 185.1 kB / 383 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.929e-05/0.1361, allocations: 19.75 kB / 383.1 MB, free: 11.26 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000248/0.1363, allocations: 82.59 kB / 383.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1363, allocations: 0 / 383.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1364, allocations: 0 / 383.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1364, allocations: 0 / 383.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.1369, allocations: 355.3 kB / 383.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1369, allocations: 0 / 383.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.137, allocations: 12.03 kB / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.137, allocations: 0 / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1371, allocations: 7.984 kB / 383.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1371, allocations: 0 / 383.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1371, allocations: 3.938 kB / 383.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.1373, allocations: 180.1 kB / 383.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.672e-05/0.1374, allocations: 97 kB / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.1375, allocations: 0 / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.1376, allocations: 4 kB / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.1377, allocations: 0 / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.1377, allocations: 4 kB / 383.8 MB, free: 10.42 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.1379, allocations: 140 kB / 383.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1379, allocations: 4 kB / 383.9 MB, free: 10.28 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005926/0.1385, allocations: 35.91 kB / 384 MB, free: 10.25 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.0006487/0.1391, allocations: 0.7131 MB / 384.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.1395, allocations: 71.89 kB / 384.8 MB, free: 9.434 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.1395, allocations: 0 / 384.8 MB, free: 9.434 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.116e-05/0.1396, allocations: 20 kB / 384.8 MB, free: 9.414 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.1403, allocations: 15.92 kB / 384.8 MB, free: 9.398 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.1433, allocations: 1.669 MB / 386.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.1437, allocations: 0.708 MB / 387.2 MB, free: 6.91 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.322e-05/0.1437, allocations: 8.422 kB / 387.2 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.1438, allocations: 27.42 kB / 387.2 MB, free: 6.875 MB / 286.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1438, allocations: 0 / 387.2 MB, free: 6.875 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.1684, allocations: 2.424 MB / 389.6 MB, free: 4.391 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/7.654, allocations: 3.984 kB / 389.6 MB, free: 4.387 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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientValve_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)