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.001835/0.001835, allocations: 108 kB / 15.61 MB, free: 152 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.002123/0.002123, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.491/1.491, 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.009012/0.009012, allocations: 1.932 MB / 271.7 MB, free: 3.328 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.002114/0.002114, allocations: 75.83 kB / 330 MB, free: 32.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06574/0.06786, allocations: 47.12 MB / 377.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.003238/0.07113, allocations: 1.953 MB / 379 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009439/0.07209, allocations: 0.5816 MB / 379.6 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.07216, allocations: 0 / 379.6 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.182e-05/0.07222, allocations: 15.8 kB / 379.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.07235, allocations: 43.62 kB / 379.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.07256, allocations: 43.88 kB / 379.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.07275, allocations: 135.3 kB / 379.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.07287, allocations: 36.89 kB / 379.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.026e-05/0.07295, allocations: 47.73 kB / 379.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.07306, allocations: 55.72 kB / 380 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.07309, allocations: 11.98 kB / 380 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.004e-05/0.07315, allocations: 16 kB / 380 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.828e-05/0.07319, allocations: 23.92 kB / 380 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.07327, allocations: 55.67 kB / 380.1 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.07344, allocations: 107.6 kB / 380.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.07345, allocations: 0 / 380.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07346, allocations: 0 / 380.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.07347, allocations: 0 / 380.2 MB, free: 14.39 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.0006085/0.07408, allocations: 422.9 kB / 380.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.07413, allocations: 11.89 kB / 380.6 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.528e-05/0.07418, allocations: 46.73 kB / 380.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.07422, allocations: 20.77 kB / 380.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.07445, allocations: 206.2 kB / 380.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.07447, allocations: 4.375 kB / 380.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.0745, allocations: 8.375 kB / 380.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.0747, allocations: 89.78 kB / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.07471, allocations: 0 / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.07473, allocations: 4 kB / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.07474, allocations: 0 / 381 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.0749, allocations: 59.97 kB / 381 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006092/0.07551, allocations: 388.3 kB / 381.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.07599, allocations: 70.47 kB / 381.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.373e-05/0.07607, allocations: 28.94 kB / 381.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.0761, allocations: 4 kB / 381.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.07613, allocations: 30.56 kB / 381.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.07613, allocations: 0 / 381.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002681/0.0764, allocations: 89.58 kB / 381.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.07646, allocations: 59.33 kB / 381.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.07664, allocations: 174.7 kB / 381.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.07667, allocations: 33.7 kB / 381.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.07675, allocations: 108 kB / 382 MB, free: 12.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.07678, allocations: 15.73 kB / 382 MB, free: 12.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.07683, allocations: 21.72 kB / 382 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.07698, allocations: 318.8 kB / 382.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.366e-05/0.07706, allocations: 32.84 kB / 382.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.019e-05/0.07712, allocations: 16 kB / 382.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.07725, allocations: 48.84 kB / 382.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.07726, allocations: 0 / 382.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001806/0.07745, allocations: 89.52 kB / 382.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.07747, allocations: 11.06 kB / 382.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.07748, allocations: 7.938 kB / 382.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.0775, allocations: 0 / 382.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.87e-05/0.07758, allocations: 11.98 kB / 382.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.0776, allocations: 0 / 382.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.104e-05/0.07767, allocations: 15.84 kB / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.07769, allocations: 0 / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000112/0.07781, allocations: 104.1 kB / 382.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.751e-05/0.07786, allocations: 19.98 kB / 382.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.61e-05/0.07796, allocations: 40.84 kB / 382.7 MB, free: 11.6 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.71e-07/0.07797, allocations: 0 / 382.7 MB, free: 11.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001574/0.07813, allocations: 81.84 kB / 382.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.07815, allocations: 4 kB / 382.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-06/0.07816, allocations: 4 kB / 382.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.07817, allocations: 7.938 kB / 382.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.392e-05/0.07824, allocations: 16.05 kB / 382.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-06/0.07825, allocations: 0 / 382.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.58e-05/0.07831, allocations: 7.938 kB / 382.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-06/0.07832, allocations: 0 / 382.9 MB, free: 11.47 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.777e-05/0.07842, allocations: 177.1 kB / 383 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.07847, allocations: 19.75 kB / 383.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.07868, allocations: 86.53 kB / 383.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.07869, allocations: 0 / 383.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.0787, allocations: 4 kB / 383.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.07871, allocations: 0 / 383.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.07915, allocations: 359.5 kB / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.07916, allocations: 0 / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.478e-05/0.07922, allocations: 11.98 kB / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.07923, allocations: 0 / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.07924, allocations: 4.031 kB / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.07925, allocations: 0 / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.07926, allocations: 0 / 383.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.07948, allocations: 180.1 kB / 383.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.07957, allocations: 93 kB / 383.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.0796, allocations: 4 kB / 383.8 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.109e-05/0.07969, allocations: 4 kB / 383.8 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.07973, allocations: 7.938 kB / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.07974, allocations: 3.984 kB / 383.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000133/0.07988, allocations: 140 kB / 383.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.07988, allocations: 0 / 383.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.08021, allocations: 39.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.0005521/0.08077, allocations: 0.7092 MB / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.081, allocations: 67.91 kB / 384.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08101, allocations: 0 / 384.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.012e-05/0.08108, allocations: 23.92 kB / 384.8 MB, free: 9.422 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.0814, allocations: 12.06 kB / 384.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.08337, allocations: 1.669 MB / 386.5 MB, free: 7.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.08375, allocations: 0.7002 MB / 387.2 MB, free: 6.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.709e-05/0.0838, allocations: 12.44 kB / 387.2 MB, free: 6.918 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.053e-05/0.08387, allocations: 31.42 kB / 387.2 MB, free: 6.887 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08388, allocations: 0 / 387.2 MB, free: 6.887 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.1076, allocations: 2.424 MB / 389.6 MB, free: 4.402 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/7.936, allocations: 16.06 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)