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.001314/0.001314, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001314/0.001314, allocations: 190.2 kB / 16.14 MB, free: 6.688 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.569/1.569, allocations: 205.1 MB / 222 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009038/0.009038, allocations: 1.932 MB / 271.3 MB, free: 3.789 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.001463/0.001463, allocations: 67.91 kB / 329.3 MB, free: 33.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.09077, allocations: 47.14 MB / 376.4 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.004851/0.09566, allocations: 4.293 MB / 380.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.0974, allocations: 1.052 MB / 381.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.09757, allocations: 11.94 kB / 381.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.09772, allocations: 39.66 kB / 381.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.098, allocations: 138.9 kB / 381.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.09834, allocations: 127.9 kB / 382.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.09877, allocations: 0.5249 MB / 382.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.099, allocations: 128.2 kB / 382.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.09919, allocations: 171.2 kB / 382.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.0994, allocations: 207 kB / 383.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.773e-05/0.09946, allocations: 28 kB / 383.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.09958, allocations: 43.98 kB / 383.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.09965, allocations: 67.69 kB / 383.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.09984, allocations: 218.9 kB / 383.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.1003, allocations: 498.4 kB / 383.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1003, allocations: 0 / 383.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1003, allocations: 0 / 383.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1003, allocations: 0 / 383.9 MB, free: 10.45 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.001241/0.1015, allocations: 0.7401 MB / 384.6 MB, free: 9.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1016, allocations: 12.03 kB / 384.7 MB, free: 9.648 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.715e-05/0.1017, allocations: 66.72 kB / 384.7 MB, free: 9.574 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.1018, allocations: 48.38 kB / 384.8 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.1021, allocations: 311.3 kB / 385.1 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.1021, allocations: 25.03 kB / 385.1 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.383e-05/0.1022, allocations: 36.36 kB / 385.1 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.1028, allocations: 318.2 kB / 385.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1028, allocations: 0 / 385.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.1028, allocations: 12 kB / 385.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1028, allocations: 8 kB / 385.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005453/0.1034, allocations: 266.4 kB / 385.7 MB, free: 8.523 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.1051, allocations: 1.13 MB / 386.9 MB, free: 7.336 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006939/0.1058, allocations: 278.8 kB / 387.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.1061, allocations: 120.8 kB / 387.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.1061, allocations: 4 kB / 387.3 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.1065, allocations: 164.1 kB / 387.4 MB, free: 6.758 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/0.1065, allocations: 0 / 387.4 MB, free: 6.758 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.002728/0.1093, allocations: 0.71 MB / 388.1 MB, free: 6.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.1093, allocations: 55.41 kB / 388.2 MB, free: 5.953 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003337/0.1097, allocations: 357.6 kB / 388.5 MB, free: 5.594 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.1097, allocations: 33.7 kB / 388.6 MB, free: 5.555 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1098, allocations: 192.2 kB / 388.7 MB, free: 5.363 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.625e-05/0.1099, allocations: 86.8 kB / 388.8 MB, free: 5.277 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.1101, allocations: 69.59 kB / 388.9 MB, free: 5.203 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1103, allocations: 342.8 kB / 389.2 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.1105, allocations: 104.8 kB / 389.3 MB, free: 4.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.1108, allocations: 161.5 kB / 389.5 MB, free: 4.574 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004756/0.1113, allocations: 283.5 kB / 389.8 MB, free: 4.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1113, allocations: 8 kB / 389.8 MB, free: 4.262 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000733/0.112, allocations: 411.6 kB / 390.2 MB, free: 3.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.1121, allocations: 37.62 kB / 390.2 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1121, allocations: 4 kB / 390.2 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00174/0.1138, allocations: 236.8 kB / 390.5 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.1141, allocations: 47.91 kB / 390.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006292/0.1147, allocations: 0.685 MB / 391.2 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.115, allocations: 51.67 kB / 391.2 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.115, allocations: 8 kB / 391.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003141/0.1154, allocations: 212.1 kB / 391.4 MB, free: 2.535 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000241/0.1156, allocations: 141.9 kB / 391.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004517/0.1161, allocations: 283.7 kB / 391.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.785e-06/0.1161, allocations: 3.984 kB / 391.9 MB, free: 2.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0009576/0.117, allocations: 435.4 kB / 392.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.1171, allocations: 41.83 kB / 392.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-06/0.1171, allocations: 0 / 392.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004046/0.1175, allocations: 96.72 kB / 392.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.1177, allocations: 47.97 kB / 392.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.1198, allocations: 1.905 MB / 394.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.1201, allocations: 35.67 kB / 394.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1201, allocations: 19.92 kB / 394.4 MB, free: 15.34 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.0001271/0.1203, allocations: 200.3 kB / 394.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.963e-05/0.1203, allocations: 31.62 kB / 394.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.1214, allocations: 400.8 kB / 395.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1214, allocations: 4 kB / 395.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1214, allocations: 7.875 kB / 395.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1214, allocations: 4 kB / 395.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/0.1218, allocations: 393 kB / 395.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1218, allocations: 0 / 395.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.1219, allocations: 31.97 kB / 395.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.1231, allocations: 200.7 kB / 395.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.1231, allocations: 8 kB / 395.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005554/0.1237, allocations: 0.6967 MB / 396.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1237, allocations: 0 / 396.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.1249, allocations: 0.5051 MB / 396.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.125, allocations: 156.5 kB / 397 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.99e-05/0.1251, allocations: 8 kB / 397.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.1253, allocations: 15.98 kB / 397.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.896e-05/0.1254, allocations: 23.95 kB / 397.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1254, allocations: 8 kB / 397.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.1257, allocations: 251.2 kB / 397.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1257, allocations: 0 / 397.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005236/0.1262, allocations: 175.7 kB / 397.5 MB, free: 12.13 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.001465/0.1277, allocations: 1.058 MB / 398.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.1291, allocations: 0.6848 MB / 399.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1291, allocations: 0.75 kB / 399.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.1294, allocations: 143.6 kB / 399.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1298, allocations: 41.55 kB / 399.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004622/0.1344, allocations: 3.72 MB / 403.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.1348, allocations: 0.7912 MB / 404 MB, free: 5.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.1349, allocations: 26.97 kB / 404 MB, free: 5.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.1351, allocations: 103.4 kB / 404.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1351, allocations: 0 / 404.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3994/0.5345, allocations: 8.294 MB / 412.4 MB, free: 13 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000418/0.535, allocations: 187.7 kB / 412.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.375/2.91, allocations: 0 / 412.6 MB, free: 12.75 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestStandardPatient_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestStandardPatient.fmu > MEV_MEV.Test.TestStandardPatient.pipe 2>&1)