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.0009427/0.0009425, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005392/0.005392, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.46/1.46, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007992/0.007992, allocations: 1.92 MB / 272.7 MB, free: 3.281 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.0005015/0.0005014, allocations: 12 kB / 331.6 MB, free: 32.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08432, allocations: 48.1 MB / 379.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestStandardPatient): time 0.003873/0.08824, allocations: 3.899 MB / 383.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.08989, allocations: 1.048 MB / 384.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.09005, allocations: 12 kB / 384.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.012e-05/0.09015, allocations: 43.66 kB / 384.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.09042, allocations: 126.9 kB / 384.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.09075, allocations: 135.8 kB / 385 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004396/0.0912, allocations: 0.5288 MB / 385.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.09142, allocations: 120.2 kB / 385.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.0916, allocations: 155.3 kB / 385.8 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.09183, allocations: 195 kB / 385.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.09188, allocations: 20 kB / 386 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.09199, allocations: 43.98 kB / 386 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.09206, allocations: 67.67 kB / 386.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.0923, allocations: 232.6 kB / 386.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003979/0.0927, allocations: 478.3 kB / 386.8 MB, free: 9.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.09272, allocations: 0 / 386.8 MB, free: 9.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.09272, allocations: 3.938 kB / 386.8 MB, free: 9.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.09274, allocations: 0 / 386.8 MB, free: 9.602 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.001175/0.09391, allocations: 0.6738 MB / 387.4 MB, free: 8.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.09396, allocations: 8.031 kB / 387.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.957e-05/0.09403, allocations: 66.72 kB / 387.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.141e-05/0.09411, allocations: 48.45 kB / 387.6 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.09442, allocations: 307.3 kB / 387.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.09444, allocations: 25.03 kB / 387.9 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.09451, allocations: 40.38 kB / 387.9 MB, free: 8.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005786/0.0951, allocations: 322.1 kB / 388.2 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.09512, allocations: 0 / 388.2 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.09516, allocations: 16 kB / 388.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.09517, allocations: 8 kB / 388.3 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005516/0.09573, allocations: 270.4 kB / 388.5 MB, free: 7.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.09746, allocations: 1.138 MB / 389.7 MB, free: 6.535 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007047/0.09818, allocations: 294.8 kB / 390 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.09845, allocations: 127.2 kB / 390.1 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.09849, allocations: 4 kB / 390.1 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003681/0.09887, allocations: 172.2 kB / 390.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.09888, allocations: 0 / 390.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.002675/0.1016, allocations: 0.7295 MB / 391 MB, free: 5.172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.1016, allocations: 63.34 kB / 391 MB, free: 5.098 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.102, allocations: 361.5 kB / 391.4 MB, free: 4.734 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.102, allocations: 33.7 kB / 391.4 MB, free: 4.695 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1022, allocations: 196.2 kB / 391.6 MB, free: 4.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.34e-05/0.1022, allocations: 86.8 kB / 391.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.1023, allocations: 29.7 kB / 391.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1024, allocations: 346.8 kB / 392.1 MB, free: 4.031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.1027, allocations: 104 kB / 392.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.1029, allocations: 169.4 kB / 392.3 MB, free: 3.742 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005207/0.1035, allocations: 299.5 kB / 392.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1035, allocations: 0 / 392.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007584/0.1043, allocations: 423.8 kB / 393 MB, free: 2.992 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.111e-05/0.1044, allocations: 167.9 kB / 393.2 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.1044, allocations: 0 / 393.2 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/0.1061, allocations: 232.6 kB / 393.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.1063, allocations: 55.91 kB / 393.5 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000636/0.1069, allocations: 0.685 MB / 394.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.1072, allocations: 43.58 kB / 394.2 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.1073, allocations: 12 kB / 394.2 MB, free: 1.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.203e-06/0.1073, allocations: 4.062 kB / 394.2 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009375/0.1082, allocations: 414.5 kB / 394.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.1082, allocations: 3.938 kB / 394.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003775/0.1086, allocations: 100.7 kB / 394.7 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.1088, allocations: 59.91 kB / 394.8 MB, free: 1.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0452/0.154, allocations: 1.901 MB / 396.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/0.1545, allocations: 43.73 kB / 396.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.1546, allocations: 12 kB / 396.8 MB, free: 15.07 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.0002814/0.1548, allocations: 237.1 kB / 397 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.39e-05/0.1549, allocations: 31.62 kB / 397 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.156, allocations: 404.7 kB / 397.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.156, allocations: 7.938 kB / 397.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.156, allocations: 0 / 397.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.156, allocations: 3.984 kB / 397.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004369/0.1565, allocations: 405 kB / 397.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1565, allocations: 4 kB / 397.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1567, allocations: 27.98 kB / 397.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.1579, allocations: 208.7 kB / 398.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.1579, allocations: 7.984 kB / 398.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005952/0.1585, allocations: 0.7044 MB / 398.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1585, allocations: 0 / 398.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1597, allocations: 0.5246 MB / 399.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.1599, allocations: 148.7 kB / 399.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/0.1599, allocations: 7.938 kB / 399.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.1601, allocations: 15.98 kB / 399.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.689e-05/0.1602, allocations: 23.97 kB / 399.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.1602, allocations: 8 kB / 399.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.1605, allocations: 251.1 kB / 399.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1605, allocations: 0 / 399.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.161, allocations: 183.7 kB / 399.9 MB, free: 11.78 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.001508/0.1626, allocations: 1.07 MB / 401 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.1639, allocations: 0.7046 MB / 401.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.164, allocations: 0 / 401.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.1643, allocations: 131.9 kB / 401.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.1647, allocations: 53.72 kB / 401.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.1695, allocations: 3.815 MB / 405.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.1698, allocations: 0.795 MB / 406.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.1699, allocations: 30.95 kB / 406.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.17, allocations: 107.4 kB / 406.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1701, allocations: 3.938 kB / 406.6 MB, free: 4.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4021/0.5722, allocations: 8.155 MB / 414.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003013/0.5726, allocations: 191 kB / 415 MB, free: 12.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/2.795, allocations: 0 / 415 MB, free: 12.42 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)