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.001372/0.001372, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001027/0.001027, allocations: 189.3 kB / 16.25 MB, free: 6.145 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.333/1.333, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008781/0.008781, allocations: 1.935 MB / 271.4 MB, free: 3.469 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.001324/0.001324, allocations: 75.27 kB / 329.4 MB, free: 33.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07171/0.07305, allocations: 47.14 MB / 376.6 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.0046/0.07769, allocations: 4.3 MB / 380.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.07941, allocations: 1.048 MB / 381.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.07958, allocations: 8 kB / 381.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.07973, allocations: 43.66 kB / 382 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.08004, allocations: 134.9 kB / 382.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.08043, allocations: 135.8 kB / 382.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.08095, allocations: 0.5562 MB / 382.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.08118, allocations: 136.5 kB / 382.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.0814, allocations: 195.2 kB / 383.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.08164, allocations: 219.1 kB / 383.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.595e-05/0.0817, allocations: 48 kB / 383.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.08184, allocations: 75.97 kB / 383.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.577e-05/0.08194, allocations: 95.67 kB / 383.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.08214, allocations: 238.9 kB / 383.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005123/0.08266, allocations: 0.5024 MB / 384.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.08267, allocations: 0 / 384.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.08268, allocations: 0 / 384.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.0827, allocations: 0 / 384.3 MB, free: 10.11 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.001269/0.08397, allocations: 0.7439 MB / 385 MB, free: 9.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.08402, allocations: 12.03 kB / 385 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.891e-05/0.0841, allocations: 66.72 kB / 385.1 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.08418, allocations: 48.38 kB / 385.2 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.08457, allocations: 311.3 kB / 385.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.0846, allocations: 33.02 kB / 385.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.08467, allocations: 36.38 kB / 385.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.08527, allocations: 314.2 kB / 385.8 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.08529, allocations: 3.938 kB / 385.8 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.08533, allocations: 12 kB / 385.8 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.08534, allocations: 8 kB / 385.9 MB, free: 8.438 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005491/0.0859, allocations: 258.5 kB / 386.1 MB, free: 8.184 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.08772, allocations: 1.13 MB / 387.2 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007008/0.08843, allocations: 274.8 kB / 387.5 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.08869, allocations: 120.8 kB / 387.6 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.08874, allocations: 8 kB / 387.6 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.08916, allocations: 164.2 kB / 387.8 MB, free: 6.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.993e-06/0.08917, allocations: 3.938 kB / 387.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.002837/0.09201, allocations: 0.7099 MB / 388.5 MB, free: 5.676 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.09207, allocations: 55.41 kB / 388.6 MB, free: 5.609 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.09243, allocations: 353.6 kB / 388.9 MB, free: 5.254 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.09248, allocations: 33.7 kB / 388.9 MB, free: 5.215 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.09263, allocations: 196.2 kB / 389.1 MB, free: 5.016 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.09271, allocations: 90.8 kB / 389.2 MB, free: 4.926 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.09283, allocations: 61.61 kB / 389.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.09298, allocations: 350.8 kB / 389.6 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.09324, allocations: 100.8 kB / 389.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.09353, allocations: 157.5 kB / 389.9 MB, free: 4.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005077/0.09404, allocations: 287.5 kB / 390.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.09406, allocations: 4 kB / 390.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000754/0.09482, allocations: 419.6 kB / 390.6 MB, free: 3.492 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.09486, allocations: 29.7 kB / 390.6 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.09488, allocations: 8 kB / 390.6 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.0967, allocations: 236.8 kB / 390.8 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.0969, allocations: 39.97 kB / 390.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006607/0.09757, allocations: 0.6966 MB / 391.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.0979, allocations: 43.61 kB / 391.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.09794, allocations: 19.97 kB / 391.6 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003351/0.09828, allocations: 208.1 kB / 391.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002499/0.09854, allocations: 146 kB / 392 MB, free: 2.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004622/0.09901, allocations: 275.8 kB / 392.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.09902, allocations: 0 / 392.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.000958/0.09999, allocations: 435.6 kB / 392.7 MB, free: 1.281 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.1, allocations: 37.64 kB / 392.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1, allocations: 3.984 kB / 392.7 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004044/0.1005, allocations: 104.7 kB / 392.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.1007, allocations: 47.91 kB / 392.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.1029, allocations: 2.099 MB / 395 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.1031, allocations: 31.73 kB / 395 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.1032, allocations: 15.98 kB / 395 MB, free: 14.8 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.0001372/0.1033, allocations: 196.2 kB / 395.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.801e-05/0.1034, allocations: 35.56 kB / 395.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.1044, allocations: 400.8 kB / 395.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.1044, allocations: 4 kB / 395.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.1044, allocations: 0 / 395.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.1045, allocations: 4 kB / 395.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003927/0.1048, allocations: 397 kB / 396 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1049, allocations: 0 / 396 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.105, allocations: 27.97 kB / 396 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.1062, allocations: 188.7 kB / 396.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.1062, allocations: 19.92 kB / 396.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000568/0.1068, allocations: 0.6889 MB / 396.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1068, allocations: 0 / 396.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.108, allocations: 0.509 MB / 397.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.1082, allocations: 152.6 kB / 397.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.266e-05/0.1083, allocations: 8 kB / 397.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.1085, allocations: 11.98 kB / 397.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.1086, allocations: 27.97 kB / 397.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1086, allocations: 4 kB / 397.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1088, allocations: 251.2 kB / 397.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1089, allocations: 0 / 397.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005719/0.1094, allocations: 179.7 kB / 398.1 MB, free: 11.6 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.001546/0.111, allocations: 1.063 MB / 399.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.1125, allocations: 0.6964 MB / 399.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1125, allocations: 3.938 kB / 399.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003854/0.1129, allocations: 148.4 kB / 400 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.1133, allocations: 41.59 kB / 400 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/0.1183, allocations: 3.712 MB / 403.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1187, allocations: 0.7912 MB / 404.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.1188, allocations: 34.95 kB / 404.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.119, allocations: 103.4 kB / 404.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.119, allocations: 0 / 404.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4362/0.5552, allocations: 8.588 MB / 413.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/0.5555, allocations: 187.8 kB / 413.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.417, allocations: 0 / 413.4 MB, free: 11.92 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)