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.002708/0.002708, 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.003318/0.003318, allocations: 196.5 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.127/3.127, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.02626/0.02626, allocations: 1.924 MB / 271.7 MB, free: 3.367 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.003554/0.003554, allocations: 67.89 kB / 329.9 MB, free: 32.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1727, allocations: 47.13 MB / 377.1 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.004354/0.1771, allocations: 3.437 MB / 380.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1789, allocations: 0.9318 MB / 381.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.1792, allocations: 4 kB / 381.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1793, allocations: 59.34 kB / 381.5 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004267/0.1798, allocations: 154.7 kB / 381.7 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.1802, allocations: 151.7 kB / 381.8 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004641/0.1807, allocations: 0.5562 MB / 382.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.1809, allocations: 136.5 kB / 382.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.1812, allocations: 203.3 kB / 382.7 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.1814, allocations: 219.1 kB / 382.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.163e-05/0.1815, allocations: 48 kB / 383 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1816, allocations: 75.98 kB / 383 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.1817, allocations: 91.62 kB / 383.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.1819, allocations: 243 kB / 383.4 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.1824, allocations: 0.4984 MB / 383.9 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1824, allocations: 0 / 383.9 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1824, allocations: 0 / 383.9 MB, free: 10.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1824, allocations: 0 / 383.9 MB, free: 10.72 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.001169/0.1836, allocations: 0.74 MB / 384.6 MB, free: 9.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1836, allocations: 12.03 kB / 384.6 MB, free: 9.918 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.004e-05/0.1837, allocations: 70.66 kB / 384.7 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.703e-05/0.1838, allocations: 52.31 kB / 384.7 MB, free: 9.789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.1841, allocations: 315.3 kB / 385 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1842, allocations: 25.03 kB / 385.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.307e-05/0.1842, allocations: 32.38 kB / 385.1 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.1848, allocations: 318.2 kB / 385.4 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1849, allocations: 0 / 385.4 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.1849, allocations: 12 kB / 385.4 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1849, allocations: 8 kB / 385.4 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.1855, allocations: 258.5 kB / 385.7 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.1873, allocations: 1.15 MB / 386.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/0.188, allocations: 270.9 kB / 387.1 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.1882, allocations: 120.8 kB / 387.2 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1882, allocations: 8 kB / 387.2 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.1886, allocations: 156.2 kB / 387.4 MB, free: 7.023 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.1886, allocations: 0 / 387.4 MB, free: 7.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.002576/0.1912, allocations: 0.7099 MB / 388.1 MB, free: 6.285 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.1912, allocations: 51.41 kB / 388.1 MB, free: 6.223 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.1916, allocations: 361.6 kB / 388.5 MB, free: 5.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1916, allocations: 33.7 kB / 388.5 MB, free: 5.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1917, allocations: 192.2 kB / 388.7 MB, free: 5.625 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.1918, allocations: 82.81 kB / 388.8 MB, free: 5.543 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.412e-05/0.1919, allocations: 73.59 kB / 388.9 MB, free: 5.465 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.921e-05/0.192, allocations: 342.8 kB / 389.2 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.1922, allocations: 108.7 kB / 389.3 MB, free: 5.012 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1925, allocations: 161.5 kB / 389.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004795/0.193, allocations: 287.6 kB / 389.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.193, allocations: 0 / 389.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007408/0.1937, allocations: 419.6 kB / 390.1 MB, free: 4.098 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.1938, allocations: 33.69 kB / 390.2 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1938, allocations: 4 kB / 390.2 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.1954, allocations: 236.8 kB / 390.4 MB, free: 3.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1956, allocations: 47.91 kB / 390.5 MB, free: 3.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006022/0.1962, allocations: 0.6889 MB / 391.1 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.1965, allocations: 51.55 kB / 391.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.1965, allocations: 8 kB / 391.2 MB, free: 3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000299/0.1968, allocations: 216.1 kB / 391.4 MB, free: 2.785 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002335/0.1971, allocations: 150 kB / 391.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004447/0.1975, allocations: 271.8 kB / 391.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.714e-06/0.1975, allocations: 0 / 391.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0009205/0.1984, allocations: 439.6 kB / 392.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1985, allocations: 37.64 kB / 392.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-06/0.1985, allocations: 0 / 392.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003708/0.1989, allocations: 100.8 kB / 392.4 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1991, allocations: 47.91 kB / 392.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/0.2047, allocations: 2.103 MB / 394.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000733/0.2055, allocations: 27.73 kB / 394.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.56e-05/0.2057, allocations: 8 kB / 394.6 MB, free: 15.41 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.0005259/0.2062, allocations: 200.3 kB / 394.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.2064, allocations: 39.5 kB / 394.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.208, allocations: 398.1 kB / 395.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2081, allocations: 0 / 395.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2081, allocations: 7.938 kB / 395.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.2081, allocations: 3.984 kB / 395.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007505/0.2089, allocations: 397 kB / 395.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/0.209, allocations: 3.938 kB / 395.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003958/0.2094, allocations: 23.98 kB / 395.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001867/0.2113, allocations: 192.6 kB / 395.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.2114, allocations: 11.94 kB / 395.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008777/0.2123, allocations: 0.7006 MB / 396.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.2123, allocations: 0 / 396.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002362/0.2147, allocations: 0.5211 MB / 397 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/0.2153, allocations: 148.6 kB / 397.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.2155, allocations: 11.98 kB / 397.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.2157, allocations: 15.98 kB / 397.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.2159, allocations: 19.97 kB / 397.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.2159, allocations: 8 kB / 397.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003534/0.2163, allocations: 251.2 kB / 397.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.2163, allocations: 0 / 397.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000895/0.2172, allocations: 171.7 kB / 397.7 MB, free: 12.19 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.003327/0.2205, allocations: 1.062 MB / 398.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.2237, allocations: 0.6812 MB / 399.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.2237, allocations: 4.188 kB / 399.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008974/0.2246, allocations: 144.1 kB / 399.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009889/0.2257, allocations: 46.09 kB / 399.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.2371, allocations: 3.587 MB / 403.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007402/0.2379, allocations: 0.7951 MB / 404 MB, free: 5.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.2381, allocations: 30.95 kB / 404 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/0.2385, allocations: 103.4 kB / 404.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of SimCode: time 3.707e-06/0.2386, allocations: 0 / 404.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09658/0.3352, allocations: 8.706 MB / 412.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.89/25.22, allocations: 5.062 kB / 412.8 MB, free: 12.73 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)