Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestStandardPatient.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.TestStandardPatient,fileNamePrefix="MEV_MEV_Test_TestStandardPatient",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestStandardPatient,fileNamePrefix="MEV_MEV_Test_TestStandardPatient",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.001241/0.001241, 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.001289/0.001289, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.714/1.714, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01176/0.01176, allocations: 1.928 MB / 271.7 MB, free: 3.359 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.002661/0.002661, allocations: 68.11 kB / 329.9 MB, free: 32.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1289, allocations: 47.13 MB / 377.1 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.006989/0.136, allocations: 3.441 MB / 380.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.1393, allocations: 0.9318 MB / 381.4 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.1397, allocations: 4 kB / 381.4 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.1399, allocations: 55.41 kB / 381.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006476/0.1407, allocations: 158.6 kB / 381.7 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007569/0.1414, allocations: 151.7 kB / 381.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009183/0.1424, allocations: 0.5524 MB / 382.4 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004069/0.1428, allocations: 136.5 kB / 382.5 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.1432, allocations: 203.2 kB / 382.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004682/0.1437, allocations: 227 kB / 382.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.1438, allocations: 48 kB / 383 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.1441, allocations: 71.98 kB / 383 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.1443, allocations: 91.69 kB / 383.1 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003732/0.1447, allocations: 234.9 kB / 383.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008873/0.1456, allocations: 0.5023 MB / 383.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1456, allocations: 0 / 383.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1456, allocations: 0 / 383.8 MB, free: 10.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.1456, allocations: 0 / 383.8 MB, free: 10.71 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001996/0.1476, allocations: 0.7439 MB / 384.6 MB, free: 9.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.1477, allocations: 12.03 kB / 384.6 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.1478, allocations: 66.72 kB / 384.7 MB, free: 9.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.148, allocations: 48.38 kB / 384.7 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/0.1486, allocations: 319.3 kB / 385 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.1486, allocations: 25.03 kB / 385.1 MB, free: 9.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.083e-05/0.1487, allocations: 36.31 kB / 385.1 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.1496, allocations: 318.1 kB / 385.4 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1496, allocations: 0 / 385.4 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.1497, allocations: 16 kB / 385.4 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.1497, allocations: 8 kB / 385.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008831/0.1506, allocations: 250.5 kB / 385.7 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003268/0.1539, allocations: 1.15 MB / 386.8 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.1552, allocations: 272.8 kB / 387.1 MB, free: 7.309 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/0.1556, allocations: 124.8 kB / 387.2 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.797e-05/0.1557, allocations: 4 kB / 387.2 MB, free: 7.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006703/0.1564, allocations: 160.2 kB / 387.4 MB, free: 7.012 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 3.296e-06/0.1564, allocations: 0 / 387.4 MB, free: 7.012 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.003015/0.1594, allocations: 0.7061 MB / 388.1 MB, free: 6.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1595, allocations: 59.34 kB / 388.1 MB, free: 6.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005087/0.16, allocations: 349.6 kB / 388.5 MB, free: 5.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.083e-05/0.1601, allocations: 33.7 kB / 388.5 MB, free: 5.816 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.1603, allocations: 204.2 kB / 388.7 MB, free: 5.609 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.229e-05/0.1604, allocations: 82.81 kB / 388.8 MB, free: 5.527 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.1605, allocations: 69.61 kB / 388.9 MB, free: 5.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1607, allocations: 342.8 kB / 389.2 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.161, allocations: 100.8 kB / 389.3 MB, free: 5.008 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.1613, allocations: 169.4 kB / 389.5 MB, free: 4.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/0.1619, allocations: 291.5 kB / 389.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.1619, allocations: 0 / 389.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008658/0.1628, allocations: 415.6 kB / 390.1 MB, free: 4.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.1628, allocations: 29.7 kB / 390.2 MB, free: 4.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1628, allocations: 7.984 kB / 390.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.1645, allocations: 236.8 kB / 390.4 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.1648, allocations: 43.92 kB / 390.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006846/0.1654, allocations: 0.6966 MB / 391.1 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.1658, allocations: 47.55 kB / 391.2 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.1658, allocations: 12 kB / 391.2 MB, free: 2.984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000345/0.1662, allocations: 208.1 kB / 391.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002686/0.1665, allocations: 146 kB / 391.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004863/0.167, allocations: 279.8 kB / 391.8 MB, free: 2.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.167, allocations: 0 / 391.8 MB, free: 2.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001058/0.168, allocations: 443.5 kB / 392.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.1681, allocations: 37.64 kB / 392.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1681, allocations: 0 / 392.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.1685, allocations: 96.78 kB / 392.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.1687, allocations: 51.91 kB / 392.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.1711, allocations: 2.099 MB / 394.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.1715, allocations: 27.73 kB / 394.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.1715, allocations: 16 kB / 394.6 MB, free: 15.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (opening.count,$PRE.opening.count,opening.T_start,$PRE.opening.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.1717, allocations: 196.3 kB / 394.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.094e-05/0.1717, allocations: 35.56 kB / 394.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.1729, allocations: 398.2 kB / 395.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1729, allocations: 4 kB / 395.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1729, allocations: 3.938 kB / 395.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1729, allocations: 3.984 kB / 395.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.1734, allocations: 401 kB / 395.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1734, allocations: 0 / 395.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.1736, allocations: 27.92 kB / 395.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.1746, allocations: 188.7 kB / 395.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.1746, allocations: 15.88 kB / 395.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006109/0.1753, allocations: 0.689 MB / 396.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1753, allocations: 0 / 396.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.1766, allocations: 0.5211 MB / 397 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.1768, allocations: 152.6 kB / 397.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.1768, allocations: 12 kB / 397.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.177, allocations: 11.98 kB / 397.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.1771, allocations: 23.97 kB / 397.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.1772, allocations: 11.98 kB / 397.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002761/0.1774, allocations: 247.2 kB / 397.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1775, allocations: 0 / 397.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005981/0.1781, allocations: 175.7 kB / 397.7 MB, free: 12.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (standardPatient.compliance.p,standardPatient.compliance.V,standardPatient.compliance.Vb) * Number of discrete variables: 3 ($whenCondition1,opening.T_start,opening.count) * Number of discrete states: 1 (opening.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.1797, allocations: 1.066 MB / 398.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.1814, allocations: 0.6813 MB / 399.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1814, allocations: 4.062 kB / 399.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000385/0.1818, allocations: 140.2 kB / 399.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.1822, allocations: 49.41 kB / 399.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005382/0.1876, allocations: 3.587 MB / 403.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.1881, allocations: 0.7873 MB / 404 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.1883, allocations: 34.95 kB / 404 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.1884, allocations: 107.4 kB / 404.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1884, allocations: 0 / 404.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03165/0.2201, allocations: 8.696 MB / 412.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.66, allocations: 5.062 kB / 412.8 MB, free: 12.72 MB / 318.1 MB (rm -f MEV_MEV.Test.TestStandardPatient.pipe ; mkfifo MEV_MEV.Test.TestStandardPatient.pipe ; head -c 1048576 < MEV_MEV.Test.TestStandardPatient.pipe >> ../files/MEV_MEV.Test.TestStandardPatient.sim & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestStandardPatient_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 MEV_MEV_Test_TestStandardPatient.fmu > MEV_MEV.Test.TestStandardPatient.pipe 2>&1)